Combined append calls (PMD)

This commit is contained in:
Erik C. Thauvin 2019-04-27 02:57:36 -07:00
parent 214180491f
commit eec6741a2f

View file

@ -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(']');