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 2022/03/23 16:38:11 UTC

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

Author: tilman
Date: Wed Mar 23 16:38:11 2022
New Revision: 1899155

URL: http://svn.apache.org/viewvc?rev=1899155&view=rev
Log:
PDFBOX-5394: Sonar fix

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDFileAttachmentAppearanceHandler.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDFileAttachmentAppearanceHandler.java?rev=1899155&r1=1899154&r2=1899155&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDFileAttachmentAppearanceHandler.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDFileAttachmentAppearanceHandler.java Wed Mar 23 16:38:11 2022
@@ -70,7 +70,7 @@ public class PDFileAttachmentAppearanceH
             annotation.getNormalAppearanceStream().setBBox(new PDRectangle(size, size));
 
             //TODO support Graph, PushPin, Paperclip, Tag
-            drawPaperclip(annotation, contentStream);
+            drawPaperclip(contentStream);
         }
         catch (IOException e)
         {
@@ -83,12 +83,10 @@ public class PDFileAttachmentAppearanceH
      * <a href="https://raw.githubusercontent.com/Iconscout/unicons/master/svg/line/paperclip.svg>Iconscout</a>
      * (Apache licensed).
      *
-     * @param annotation
      * @param contentStream
      * @throws IOException
      */
-    private void drawPaperclip(PDAnnotationFileAttachment annotation, final PDAppearanceContentStream contentStream)
-                 throws IOException
+    private void drawPaperclip(final PDAppearanceContentStream contentStream) throws IOException
     {
         contentStream.moveTo(13.574f, 9.301f);
         contentStream.lineTo(8.926f, 13.949f);
@@ -131,4 +129,4 @@ public class PDFileAttachmentAppearanceH
     {
         // No down appearance generated
     }
-}
\ No newline at end of file
+}