pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1722719 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java
Date Sun, 03 Jan 2016 14:05:15 GMT
Author: lehmi
Date: Sun Jan  3 14:05:15 2016
New Revision: 1722719

URL: http://svn.apache.org/viewvc?rev=1722719&view=rev
Log:
PDFBOX-3131: simplify entry access

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java?rev=1722719&r1=1722718&r2=1722719&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java Sun Jan  3 14:05:15
2016
@@ -1107,7 +1107,7 @@ public class CFFParser
         
         public Entry getEntry(String name)
         {
-            return getEntry(CFFOperator.getOperator(name));
+            return entries.get(name);
         }
 
         public Boolean getBoolean(String name, boolean defaultValue)
@@ -1128,15 +1128,6 @@ public class CFFParser
             return entry != null ? entry.getNumber(0) : defaultValue;
         }
 
-        private Entry getEntry(CFFOperator operator)
-        {
-            if (operator != null && entries.containsKey(operator.getName()))
-            {
-                return entries.get(operator.getName());
-            }
-            return null;
-        }
-
         /**
          * {@inheritDoc} 
          */



Mime
View raw message