Combined append calls (PMD)
This commit is contained in:
parent
214180491f
commit
eec6741a2f
1 changed files with 2 additions and 3 deletions
|
@ -87,9 +87,8 @@ public final class EntriesUtils {
|
||||||
*/
|
*/
|
||||||
@SuppressFBWarnings(value = "CE_CLASS_ENVY", justification = "Yes, it does.")
|
@SuppressFBWarnings(value = "CE_CLASS_ENVY", justification = "Yes, it does.")
|
||||||
public static String buildLink(final int index, final EntryLink entry, final boolean isView) {
|
public static String buildLink(final int index, final EntryLink entry, final boolean isView) {
|
||||||
final StringBuilder buff = new StringBuilder().append(Commands.LINK_CMD).append(index + 1).append(": ");
|
final StringBuilder buff = new StringBuilder().append(Commands.LINK_CMD).append(index + 1)
|
||||||
|
.append(": ").append('[').append(entry.getNick()).append(']');
|
||||||
buff.append('[').append(entry.getNick()).append(']');
|
|
||||||
|
|
||||||
if (isView && entry.hasComments()) {
|
if (isView && entry.hasComments()) {
|
||||||
buff.append("[+").append(entry.getCommentsCount()).append(']');
|
buff.append("[+").append(entry.getCommentsCount()).append(']');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue