pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1703254 - in /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel: HelloWorld.java HelloWorldTTF.java
Date Tue, 15 Sep 2015 16:58:46 GMT
Author: tilman
Date: Tue Sep 15 16:58:45 2015
New Revision: 1703254

URL: http://svn.apache.org/r1703254
Log:
PDFBOX-2852: add private constructor, make class final

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorld.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorldTTF.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorld.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorld.java?rev=1703254&r1=1703253&r2=1703254&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorld.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorld.java
Tue Sep 15 16:58:45 2015
@@ -31,8 +31,12 @@ import org.apache.pdfbox.pdmodel.font.PD
  *
  * The example is taken from the PDF file format specification.
  */
-public class HelloWorld
+public final class HelloWorld
 {
+    private HelloWorld()
+    {
+    }
+    
     public static void main(String[] args) throws IOException
     {
         if( args.length != 2 )

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorldTTF.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorldTTF.java?rev=1703254&r1=1703253&r2=1703254&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorldTTF.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorldTTF.java
Tue Sep 15 16:58:45 2015
@@ -28,8 +28,12 @@ import org.apache.pdfbox.pdmodel.font.PD
 /**
  * Creates a simple document with a TrueType font.
  */
-public class HelloWorldTTF
+public final class HelloWorldTTF
 {
+    private HelloWorldTTF()
+    {
+    }
+
     public static void main(String[] args) throws IOException
     {
         if (args.length != 3)



Mime
View raw message