diff options
author | 2016-12-20 14:28:00 +0300 | |
---|---|---|
committer | 2016-12-20 14:28:00 +0300 | |
commit | 3859c9616d0a7a04e68427d173b863161b818140 (patch) | |
tree | cba4d1aea88b7ce0d94cbc30fc05f765c9faaa15 /juick-www/src/main/java/com/juick/www/Discover.java | |
parent | 8b02f969d3a09e39557474eb90ec821d550e3b1b (diff) |
StringUtils.EMPTY
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/Discover.java')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/Discover.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/Discover.java b/juick-www/src/main/java/com/juick/www/Discover.java index 9cfad874..af2b6659 100644 --- a/juick-www/src/main/java/com/juick/www/Discover.java +++ b/juick-www/src/main/java/com/juick/www/Discover.java @@ -22,6 +22,7 @@ import com.juick.server.MessagesQueries; import com.juick.server.TagQueries; import org.apache.commons.lang3.CharEncoding; import org.apache.commons.lang3.StringEscapeUtils; +import org.apache.commons.lang3.StringUtils; import org.springframework.jdbc.core.JdbcTemplate; import javax.servlet.ServletException; @@ -80,7 +81,7 @@ public class Discover { response.setContentType("text/html; charset=UTF-8"); try (PrintWriter out = response.getWriter()) { - String head = ""; + String head = StringUtils.EMPTY; if (TagQueries.getTagNoIndex(sql, paramTag.TID)) { head = "<meta name=\"robots\" content=\"noindex,nofollow\"/>"; } else if (paramBefore > 0 || mids.size() < 5) { |