pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1676366 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/PDXObject.java
Date Mon, 27 Apr 2015 20:19:29 GMT
Author: tilman
Date: Mon Apr 27 20:19:28 2015
New Revision: 1676366

URL: http://svn.apache.org/r1676366
Log:
PDFBOX-2576: make field final

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/PDXObject.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/PDXObject.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/PDXObject.java?rev=1676366&r1=1676365&r2=1676366&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/PDXObject.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/PDXObject.java Mon
Apr 27 20:19:28 2015
@@ -36,12 +36,14 @@ import java.io.IOException;
  */
 public class PDXObject implements COSObjectable
 {
-    private PDStream stream;
+    private final PDStream stream;
 
     /**
      * Creates a new XObject instance of the appropriate type for the COS stream.
+     *
      * @param base The stream which is wrapped by this XObject.
      * @return A new XObject instance.
+     * @throws java.io.IOException if there is an error creating the XObject.
      */
     public static PDXObject createXObject(COSBase base, String name, PDResources resources)
             throws IOException
@@ -106,6 +108,7 @@ public class PDXObject implements COSObj
      * Returns the stream.
      * {@inheritDoc}
      */
+    @Override
     public final COSBase getCOSObject()
     {
         return stream.getCOSObject();



Mime
View raw message