Skip to content

Commit ba6c96b

Browse files
committed
🎨 Clean code
1 parent 1d34d0a commit ba6c96b

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

‎src/main/java/org/b3log/solo/processor/util/Filler.java‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
*
6161
* @author <a href="http://88250.b3log.org">Liang Ding</a>
6262
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
63-
* @version 1.6.14.13, Jun 16, 2017
63+
* @version 1.6.14.14, Aug 2, 2017
6464
* @since 0.3.1
6565
*/
6666
@Service
@@ -519,7 +519,6 @@ public void fillRecentArticles(final Map<String, Object> dataModel, final JSONOb
519519
final List<JSONObject> recentArticles = articleRepository.getRecentArticles(recentArticleDisplayCnt);
520520

521521
dataModel.put(Common.RECENT_ARTICLES, recentArticles);
522-
523522
} catch (final JSONException e) {
524523
LOGGER.log(Level.ERROR, "Fills recent articles failed", e);
525524
throw new ServiceException(e);
@@ -906,7 +905,6 @@ private void fillStatistic(final Map<String, Object> dataModel) throws ServiceEx
906905
* Sets some extra properties into the specified article with the specified author and preference, performs content
907906
* and abstract editor processing.
908907
* <p>
909-
* <p>
910908
* Article ext properties:
911909
* <pre>
912910
* {
@@ -978,7 +976,8 @@ private void setArticleExProperties(final HttpServletRequest request,
978976
* "authorThumbnailURL": "",
979977
* "hasUpdated": boolean
980978
* }
981-
* </pre> </p>
979+
* </pre>
980+
* </p>
982981
*
983982
* @param request the specified HTTP servlet request
984983
* @param article the specified article
@@ -1039,7 +1038,8 @@ private void setArticleExProperties(final HttpServletRequest request, final JSON
10391038
* "authorId": "",
10401039
* "hasUpdated": boolean
10411040
* }
1042-
* </pre> </p>
1041+
* </pre>
1042+
* </p>
10431043
*
10441044
* @param request the specified HTTP servlet request
10451045
* @param articles the specified articles
@@ -1070,7 +1070,8 @@ public void setArticlesExProperties(final HttpServletRequest request,
10701070
* "authorId": "",
10711071
* "hasUpdated": boolean
10721072
* }
1073-
* </pre> </p>
1073+
* </pre>
1074+
* </p>
10741075
*
10751076
* @param request the specified HTTP servlet request
10761077
* @param articles the specified articles
@@ -1088,13 +1089,11 @@ public void setArticlesExProperties(final HttpServletRequest request,
10881089

10891090
/**
10901091
* Processes the abstract of the specified article with the specified preference.
1091-
* <p>
10921092
* <ul>
10931093
* <li>If the abstract is {@code null}, sets it with ""</li>
10941094
* <li>If user configured preference "titleOnly", sets the abstract with ""</li>
10951095
* <li>If user configured preference "titleAndContent", sets the abstract with the content of the article</li>
10961096
* </ul>
1097-
* </p>
10981097
*
10991098
* @param preference the specified preference
11001099
* @param article the specified article

0 commit comments

Comments
 (0)