pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1823696 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDAbstractAppearanceHandler.java
Date Fri, 09 Feb 2018 19:37:22 GMT
Author: msahyoun
Date: Fri Feb  9 19:37:22 2018
New Revision: 1823696

URL: http://svn.apache.org/viewvc?rev=1823696&view=rev
Log:
PDFBOX-4071: use non conflicting names for local variables

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=1823696&r1=1823695&r2=1823696&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
Fri Feb  9 19:37:22 2018
@@ -123,16 +123,16 @@ public abstract class PDAbstractAppearan
     PDAppearanceEntry getDownAppearance()
     {
         PDAppearanceDictionary appearanceDictionary = getAppearance();
-        PDAppearanceEntry appearanceEntry = appearanceDictionary.getDownAppearance();
+        PDAppearanceEntry downAppearanceEntry = appearanceDictionary.getDownAppearance();
 
-        if (appearanceEntry.isSubDictionary())
+        if (downAppearanceEntry.isSubDictionary())
         {
             //TODO replace with "document.getDocument().createCOSStream()" 
-            appearanceEntry = new PDAppearanceEntry(new COSStream());
-            appearanceDictionary.setDownAppearance(appearanceEntry);
+            downAppearanceEntry = new PDAppearanceEntry(new COSStream());
+            appearanceDictionary.setDownAppearance(downAppearanceEntry);
         }
 
-        return appearanceEntry;
+        return downAppearanceEntry;
     }
 
     /**
@@ -147,16 +147,16 @@ public abstract class PDAbstractAppearan
     PDAppearanceEntry getRolloverAppearance()
     {
         PDAppearanceDictionary appearanceDictionary = getAppearance();
-        PDAppearanceEntry appearanceEntry = appearanceDictionary.getRolloverAppearance();
+        PDAppearanceEntry rolloverAppearanceEntry = appearanceDictionary.getRolloverAppearance();
 
-        if (appearanceEntry.isSubDictionary())
+        if (rolloverAppearanceEntry.isSubDictionary())
         {
             //TODO replace with "document.getDocument().createCOSStream()" 
-            appearanceEntry = new PDAppearanceEntry(new COSStream());
-            appearanceDictionary.setRolloverAppearance(appearanceEntry);
+            rolloverAppearanceEntry = new PDAppearanceEntry(new COSStream());
+            appearanceDictionary.setRolloverAppearance(rolloverAppearanceEntry);
         }
 
-        return appearanceEntry;
+        return rolloverAppearanceEntry;
     }
     
     /**
@@ -272,22 +272,22 @@ public abstract class PDAbstractAppearan
     private PDAppearanceEntry getNormalAppearance()
     {
         PDAppearanceDictionary appearanceDictionary = getAppearance();
-        PDAppearanceEntry appearanceEntry = appearanceDictionary.getNormalAppearance();
+        PDAppearanceEntry normalAappearanceEntry = appearanceDictionary.getNormalAppearance();
 
-        if (appearanceEntry.isSubDictionary())
+        if (normalAappearanceEntry.isSubDictionary())
         {
             //TODO replace with "document.getDocument().createCOSStream()" 
-            appearanceEntry = new PDAppearanceEntry(new COSStream());
-            appearanceDictionary.setNormalAppearance(appearanceEntry);
+            normalAappearanceEntry = new PDAppearanceEntry(new COSStream());
+            appearanceDictionary.setNormalAppearance(normalAappearanceEntry);
         }
 
-        return appearanceEntry;
+        return normalAappearanceEntry;
     }
     
     
-    private PDAppearanceContentStream getAppearanceEntryAsContentStream(PDAppearanceEntry
appearanceEntry) throws IOException
+    private PDAppearanceContentStream getAppearanceEntryAsContentStream(PDAppearanceEntry
appearanceEntryToStream) throws IOException
     {
-        PDAppearanceStream appearanceStream = appearanceEntry.getAppearanceStream();
+        PDAppearanceStream appearanceStream = appearanceEntryToStream.getAppearanceStream();
         setTransformationMatrix(appearanceStream);
         return new PDAppearanceContentStream(appearanceStream);
     }



Mime
View raw message