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 2026/07/22 11:50:51 UTC

svn commit: r1936464 - pdfbox/branches/3.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane

Author: tilman
Date: Wed Jul 22 11:50:51 2026
New Revision: 1936464

Log:
PDFBOX-5660: refactor / limit visibility

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

Modified: pdfbox/branches/3.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane/PanoseFlag.java
==============================================================================
--- pdfbox/branches/3.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane/PanoseFlag.java	Wed Jul 22 11:50:48 2026	(r1936463)
+++ pdfbox/branches/3.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane/PanoseFlag.java	Wed Jul 22 11:50:51 2026	(r1936464)
@@ -27,7 +27,7 @@ import org.apache.pdfbox.pdmodel.font.PD
  * @author Khyrul Bashar
  * A class that provide Panose classification data
  */
-public class PanoseFlag extends Flag
+class PanoseFlag extends Flag
 {
 
     private final byte[] bytes;
@@ -37,13 +37,12 @@ public class PanoseFlag extends Flag
      * Constructor.
      * @param dictionary COSDictionary instance. style dictionary that contains panose object.
      */
-    public PanoseFlag(COSDictionary dictionary)
+    PanoseFlag(COSDictionary dictionary)
     {
-        byteValue = (COSString)dictionary.getDictionaryObject(COSName.PANOSE);
-        bytes = getPanoseBytes(dictionary);
+        byteValue = (COSString) dictionary.getDictionaryObject(COSName.PANOSE);
+        bytes = byteValue.getBytes();
     }
 
-
     @Override
     String getFlagType()
     {
@@ -254,10 +253,4 @@ public class PanoseFlag extends Flag
                 "Ducking/Large",
         }[index];
     }
-
-    public final byte[] getPanoseBytes(COSDictionary style)
-    {
-        COSString panose = (COSString)style.getDictionaryObject(COSName.PANOSE);
-        return panose.getBytes();
-    }
 }