pdfbox-commits mailing list archives

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

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

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

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java?rev=1854333&r1=1854332&r2=1854333&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java Mon Feb 25
18:53:50 2019
@@ -412,6 +412,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"))
         {
@@ -436,7 +442,6 @@ final class Type1Parser
 
             read(Token.NAME, "if");
         }
-        return value;
     }
 
     /**



Mime
View raw message