Skip to content

Commit

Permalink
Improve Comment.toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
pvorb committed Apr 1, 2016
1 parent c03154a commit d69e95c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/de/vorb/platon/model/Comment.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,10 @@ public String toString() {
.omitNullValues()
.add("id", id)
.add("thread", thread)
.add("text", text != null && text.length() > 1024
? StringUtils.left(text, 1021) + "..."
: text)
.add("text",
(text != null && text.length() > 1024)
? text.substring(0, 1020) + "..."
: text)
.add("author", author)
.toString();
}
Expand Down

0 comments on commit d69e95c

Please sign in to comment.