pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1803664 - /pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/type/IntegerType.java
Date Tue, 01 Aug 2017 16:30:22 GMT
Author: tilman
Date: Tue Aug  1 16:30:22 2017
New Revision: 1803664

URL: http://svn.apache.org/viewvc?rev=1803664&view=rev
Log:
PDFBOX-2852: avoid boxing

Modified:
    pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/type/IntegerType.java

Modified: pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/type/IntegerType.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/type/IntegerType.java?rev=1803664&r1=1803663&r2=1803664&view=diff
==============================================================================
--- pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/type/IntegerType.java (original)
+++ pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/type/IntegerType.java Tue Aug  1 16:30:22
2017
@@ -80,7 +80,7 @@ public class IntegerType extends Abstrac
         }
         else if (value instanceof String)
         {
-            integerValue = Integer.valueOf((String) value);
+            integerValue = Integer.parseInt((String) value);
             // NumberFormatException is thrown (sub of InvalidArgumentException)
         }
         else



Mime
View raw message