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 2018/07/05 18:05:24 UTC

svn commit: r1835167 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDAbstractAppearanceHandler.java

Author: tilman
Date: Thu Jul  5 18:05:24 2018
New Revision: 1835167

URL: http://svn.apache.org/viewvc?rev=1835167&view=rev
Log:
PDFBOX-3353: improve javadoc, remove double code

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=1835167&r1=1835166&r2=1835167&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 Thu Jul  5 18:05:24 2018
@@ -117,24 +117,22 @@ public abstract class PDAbstractAppearan
      * Get the annotations normal appearance content stream.
      * 
      * <p>
-     * This will get the annotations normal appearance content stream,
-     * to 'draw' to.
-     * 
+     * This will get the annotations normal appearance content stream, to 'draw' to. It will be
+     * uncompressed.
+     *
      * @return the appearance entry representing the normal appearance.
      * @throws IOException 
      */
     PDAppearanceContentStream getNormalAppearanceAsContentStream() throws IOException
     {
-        PDAppearanceEntry appearanceEntry = getNormalAppearance();
-        return getAppearanceEntryAsContentStream(appearanceEntry, false);
+        return getNormalAppearanceAsContentStream(false);
     }
     
     /**
      * Get the annotations normal appearance content stream.
      * 
      * <p>
-     * This will get the annotations normal appearance content stream,
-     * to 'draw' to.
+     * This will get the annotations normal appearance content stream, to 'draw' to.
      * 
      * @param compress whether the content stream is to be compressed. Set this to true when
      * creating long content streams.