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 2019/08/22 04:02:11 UTC

svn commit: r1865669 - /pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomGraphicsStreamEngine.java

Author: tilman
Date: Thu Aug 22 04:02:11 2019
New Revision: 1865669

URL: http://svn.apache.org/viewvc?rev=1865669&view=rev
Log:
PDFBOX-4071: SonarQube fix: move this constructor to comply with Java Code Conventions

Modified:
    pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomGraphicsStreamEngine.java

Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomGraphicsStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomGraphicsStreamEngine.java?rev=1865669&r1=1865668&r2=1865669&view=diff
==============================================================================
--- pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomGraphicsStreamEngine.java (original)
+++ pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomGraphicsStreamEngine.java Thu Aug 22 04:02:11 2019
@@ -42,6 +42,16 @@ import org.apache.pdfbox.util.Vector;
  */
 public class CustomGraphicsStreamEngine extends PDFGraphicsStreamEngine
 {
+    /**
+     * Constructor.
+     *
+     * @param page PDF Page
+     */
+    protected CustomGraphicsStreamEngine(PDPage page)
+    {
+        super(page);
+    }
+
     public static void main(String[] args) throws IOException
     {
         File file = new File("src/main/resources/org/apache/pdfbox/examples/rendering/",
@@ -55,16 +65,6 @@ public class CustomGraphicsStreamEngine
     }
     
     /**
-     * Constructor.
-     *
-     * @param page PDF Page
-     */
-    protected CustomGraphicsStreamEngine(PDPage page)
-    {
-        super(page);
-    }
-
-    /**
      * Runs the engine on the current page.
      *
      * @throws IOException If there is an IO error while drawing the page.