pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1831921 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDAbstractAppearanceHandler.java
Date Sat, 19 May 2018 20:26:41 GMT
Author: tilman
Date: Sat May 19 20:26:41 2018
New Revision: 1831921

URL: http://svn.apache.org/viewvc?rev=1831921&view=rev
Log:
PDFBOX-3353: sonar fix

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDAbstractAppearanceHandler.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDAbstractAppearanceHandler.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDAbstractAppearanceHandler.java?rev=1831921&r1=1831920&r2=1831921&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDAbstractAppearanceHandler.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDAbstractAppearanceHandler.java
Sat May 19 20:26:41 2018
@@ -59,28 +59,6 @@ public abstract class PDAbstractAppearan
      */
     protected static final Set<String> INTERIOR_COLOR_STYLES = createInteriorColorStyles();
 
-    private static Set<String> createShortStyles()
-    {
-        Set<String> shortStyles = new HashSet<>();
-        shortStyles.add(PDAnnotationLine.LE_OPEN_ARROW);
-        shortStyles.add(PDAnnotationLine.LE_CLOSED_ARROW);
-        shortStyles.add(PDAnnotationLine.LE_SQUARE);
-        shortStyles.add(PDAnnotationLine.LE_CIRCLE);
-        shortStyles.add(PDAnnotationLine.LE_DIAMOND);
-        return Collections.unmodifiableSet(shortStyles);
-    }
-
-    private static Set<String> createInteriorColorStyles()
-    {
-        Set<String> interiorColorStyles = new HashSet<>();
-        interiorColorStyles.add(PDAnnotationLine.LE_CLOSED_ARROW);
-        interiorColorStyles.add(PDAnnotationLine.LE_CIRCLE);
-        interiorColorStyles.add(PDAnnotationLine.LE_DIAMOND);
-        interiorColorStyles.add(PDAnnotationLine.LE_R_CLOSED_ARROW);
-        interiorColorStyles.add(PDAnnotationLine.LE_SQUARE);
-        return Collections.unmodifiableSet(interiorColorStyles);
-    }
-
     public PDAbstractAppearanceHandler(PDAnnotation annotation)
     {
         this.annotation = annotation;
@@ -411,6 +389,28 @@ public abstract class PDAbstractAppearan
         cs.closePath();
     }
 
+    private static Set<String> createShortStyles()
+    {
+        Set<String> shortStyles = new HashSet<>();
+        shortStyles.add(PDAnnotationLine.LE_OPEN_ARROW);
+        shortStyles.add(PDAnnotationLine.LE_CLOSED_ARROW);
+        shortStyles.add(PDAnnotationLine.LE_SQUARE);
+        shortStyles.add(PDAnnotationLine.LE_CIRCLE);
+        shortStyles.add(PDAnnotationLine.LE_DIAMOND);
+        return Collections.unmodifiableSet(shortStyles);
+    }
+
+    private static Set<String> createInteriorColorStyles()
+    {
+        Set<String> interiorColorStyles = new HashSet<>();
+        interiorColorStyles.add(PDAnnotationLine.LE_CLOSED_ARROW);
+        interiorColorStyles.add(PDAnnotationLine.LE_CIRCLE);
+        interiorColorStyles.add(PDAnnotationLine.LE_DIAMOND);
+        interiorColorStyles.add(PDAnnotationLine.LE_R_CLOSED_ARROW);
+        interiorColorStyles.add(PDAnnotationLine.LE_SQUARE);
+        return Collections.unmodifiableSet(interiorColorStyles);
+    }
+
     /**
      * Get the annotations normal appearance.
      * 



Mime
View raw message