You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2020/05/29 18:40:27 UTC

svn commit: r1878288 - /pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane/PanoseFlag.java

Author: tilman
Date: Fri May 29 18:40:27 2020
New Revision: 1878288

URL: http://svn.apache.org/viewvc?rev=1878288&view=rev
Log:
PDFBOX-4071: remove null check, parameter is never null

Modified:
    pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane/PanoseFlag.java

Modified: pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane/PanoseFlag.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane/PanoseFlag.java?rev=1878288&r1=1878287&r2=1878288&view=diff
==============================================================================
--- pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane/PanoseFlag.java (original)
+++ pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane/PanoseFlag.java Fri May 29 18:40:27 2020
@@ -257,11 +257,7 @@ public class PanoseFlag extends Flag
 
     public final byte[] getPanoseBytes(COSDictionary style)
     {
-        if (style != null)
-        {
-            COSString panose = (COSString)style.getDictionaryObject(COSName.PANOSE);
-            return panose.getBytes();
-        }
-        return null;
+        COSString panose = (COSString)style.getDictionaryObject(COSName.PANOSE);
+        return panose.getBytes();
     }
 }