diff options
author | Vitaly Takmazov | 2020-03-07 13:20:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-03-07 13:20:45 +0300 |
commit | c9d67837cbcaae84a03b7bd14e508ca62880f87f (patch) | |
tree | 0f66e38f5b6aa48c66fae7d10c0b8b5ad6f7e7e2 /src/main/java/com/juick/formatters | |
parent | ad50d1090b303d3a71c354dd2922a982fda6a289 (diff) |
Reorganize project layout
Diffstat (limited to 'src/main/java/com/juick/formatters')
-rw-r--r-- | src/main/java/com/juick/formatters/PlainTextFormatter.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/juick/formatters/PlainTextFormatter.java b/src/main/java/com/juick/formatters/PlainTextFormatter.java index 1d5299c9..21cabac2 100644 --- a/src/main/java/com/juick/formatters/PlainTextFormatter.java +++ b/src/main/java/com/juick/formatters/PlainTextFormatter.java @@ -17,7 +17,7 @@ package com.juick.formatters; -import com.juick.Message; +import com.juick.model.Message; import com.juick.util.MessageUtils; import org.apache.commons.lang3.StringUtils; import org.ocpsoft.prettytime.PrettyTime; @@ -75,7 +75,7 @@ public class PlainTextFormatter { m.getUser().getName(), MessageUtils.getTagsString(m), sb.toString(), formatPostNumber(m), timeAgo, repliesCount, formatUrl(m)); } - public static String formatUrl(com.juick.Message jmsg) { + public static String formatUrl(Message jmsg) { if (MessageUtils.isReply(jmsg)) { return String.format("https://juick.com/m/%d#%d", jmsg.getMid(), jmsg.getRid()); } else if (MessageUtils.isPM(jmsg)) { @@ -92,7 +92,7 @@ public class PlainTextFormatter { } } - public static String formatPostNumber(com.juick.Message jmsg) { + public static String formatPostNumber(Message jmsg) { if (jmsg.getRid() > 0) { return String.format("%d/%d", jmsg.getMid(), jmsg.getRid()); } |