pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1854334 - /pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java
Date Mon, 25 Feb 2019 18:53:59 GMT
Author: tilman
Date: Mon Feb 25 18:53:59 2019
New Revision: 1854334

URL: http://svn.apache.org/viewvc?rev=1854334&view=rev
Log:
PDFBOX-4474: split long method

Modified:
    pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java

Modified: pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java?rev=1854334&r1=1854333&r2=1854334&view=diff
==============================================================================
--- pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java (original)
+++ pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java Mon
Feb 25 18:53:59 2019
@@ -419,6 +419,12 @@ final class Type1Parser
             return value;
         }
 
+        readPostScriptWrapper(value);
+        return value;
+    }
+
+    private void readPostScriptWrapper(List<Token> value) throws IOException
+    {
         // postscript wrapper (not in the Type 1 spec)
         if (lexer.peekToken().getText().equals("systemdict"))
         {
@@ -443,7 +449,6 @@ final class Type1Parser
 
             read(Token.NAME, "if");
         }
-        return value;
     }
 
     /**



Mime
View raw message