Author: tilman Date: Mon Dec 4 17:03:47 2023 New Revision: 1914329 URL: http://svn.apache.org/viewvc?rev=1914329&view=rev Log: PDFBOX-5660: use String join() method, by Axel Howind
Modified: pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/LogDialog.java Modified: pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/LogDialog.java URL: http://svn.apache.org/viewvc/pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/LogDialog.java?rev=1914329&r1=1914328&r2=1914329&view=diff ============================================================================== --- pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/LogDialog.java (original) +++ pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/LogDialog.java Mon Dec 4 17:03:47 2023 @@ -178,15 +178,7 @@ public class LogDialog extends JDialog infos.add(otherCount + " message" + (otherCount > 1 ? "s" : "")); } - String info = ""; - for (String str : infos) - { - if (!info.isEmpty()) - { - info += ", "; - } - info += str; - } + String info = String.join(", ", infos); logLabel.setText(info); }