pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1612777 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFSubFont.java
Date Wed, 23 Jul 2014 06:51:19 GMT
Author: tilman
Date: Wed Jul 23 06:51:18 2014
New Revision: 1612777

URL: http://svn.apache.org/r1612777
Log:
PDFBOX-2147: Removed unnecessary boxing

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFSubFont.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFSubFont.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFSubFont.java?rev=1612777&r1=1612776&r2=1612777&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFSubFont.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFSubFont.java Wed Jul 23 06:51:18
2014
@@ -103,7 +103,7 @@ public class TTFSubFont 
      */
     public void addCharCode(int charCode) 
     {
-        Integer gid = Integer.valueOf(baseCmap.getGlyphId(charCode));
+        Integer gid = baseCmap.getGlyphId(charCode);
         if (charCode == 0 || gid != 0) 
         {
             characters.put(charCode,gid);



Mime
View raw message