pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1814893 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox: cos/COSNumber.java pdmodel/PDDocument.java
Date Fri, 10 Nov 2017 18:01:26 GMT
Author: tilman
Date: Fri Nov 10 18:01:26 2017
New Revision: 1814893

URL: http://svn.apache.org/viewvc?rev=1814893&view=rev
Log:
PDFBOX-3709: remove deprecated COSNumber and related workaround

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSNumber.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSNumber.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSNumber.java?rev=1814893&r1=1814892&r2=1814893&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSNumber.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSNumber.java Fri Nov 10 18:01:26
2017
@@ -25,19 +25,6 @@ import java.io.IOException;
  */
 public abstract class COSNumber extends COSBase
 {
-
-    /**
-     * @deprecated Use the {@link COSInteger#ZERO} constant instead
-     */
-    @Deprecated
-    public static final COSInteger ZERO = COSInteger.ZERO;
-
-    /**
-     * @deprecated Use the {@link COSInteger#ONE} constant instead
-     */
-    @Deprecated
-    public static final COSInteger ONE = COSInteger.ONE;
-
     /**
      * This will get the float value of this number.
      *

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1814893&r1=1814892&r2=1814893&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Fri Nov 10
18:01:26 2017
@@ -108,17 +108,6 @@ public class PDDocument implements Close
         {
             LOG.debug("voodoo error", ex);
         }
-
-        try
-        {
-            //TODO remove this and deprecated COSNumber statics in 3.0
-            COSNumber.get("0");
-            COSNumber.get("1");
-        }
-        catch (IOException ex)
-        {
-            //
-        }
     }
     
     private final COSDocument document;



Mime
View raw message