pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1861415 - /pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/PDFTreeCellRenderer.java
Date Sat, 15 Jun 2019 16:45:50 GMT
Author: tilman
Date: Sat Jun 15 16:45:50 2019
New Revision: 1861415

URL: http://svn.apache.org/viewvc?rev=1861415&view=rev
Log:
PDFBOX-4071: SonarQube fix

Modified:
    pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/PDFTreeCellRenderer.java

Modified: pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/PDFTreeCellRenderer.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/PDFTreeCellRenderer.java?rev=1861415&r1=1861414&r2=1861415&view=diff
==============================================================================
--- pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/PDFTreeCellRenderer.java
(original)
+++ pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/PDFTreeCellRenderer.java
Sat Jun 15 16:45:50 2019
@@ -102,7 +102,7 @@ public class PDFTreeCellRenderer extends
             else
             {
                 ArrayEntry entry = (ArrayEntry) nodeValue;
-                key = "" + entry.getIndex();
+                key = Integer.toString(entry.getIndex());
                 object = toTreeObject(entry.getValue());
                 value = entry.getValue();
                 item = entry.getItem();
@@ -125,15 +125,15 @@ public class PDFTreeCellRenderer extends
         }
         else if (nodeValue instanceof COSBoolean)
         {
-            result = "" + ((COSBoolean) nodeValue).getValue();
+            result = Boolean.toString(((COSBoolean) nodeValue).getValue());
         }
         else if (nodeValue instanceof COSFloat)
         {
-            result = "" + ((COSFloat) nodeValue).floatValue();
+            result = Float.toString(((COSFloat) nodeValue).floatValue());
         }
         else if (nodeValue instanceof COSInteger)
         {
-            result = "" + ((COSInteger) nodeValue).intValue();
+            result = Integer.toString(((COSInteger) nodeValue).intValue());
         }
         else if (nodeValue instanceof COSString)
         {



Mime
View raw message