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:16 UTC
svn commit: r1865670 -
/pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomGraphicsStreamEngine.java
Author: tilman
Date: Thu Aug 22 04:02:16 2019
New Revision: 1865670
URL: http://svn.apache.org/viewvc?rev=1865670&view=rev
Log:
PDFBOX-4071: SonarQube fix: move this constructor to comply with Java Code Conventions
Modified:
pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomGraphicsStreamEngine.java
Modified: pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomGraphicsStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomGraphicsStreamEngine.java?rev=1865670&r1=1865669&r2=1865670&view=diff
==============================================================================
--- pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomGraphicsStreamEngine.java (original)
+++ pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/rendering/CustomGraphicsStreamEngine.java Thu Aug 22 04:02:16 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.