pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1726872 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDMetadata.java
Date Tue, 26 Jan 2016 20:14:04 GMT
Author: tilman
Date: Tue Jan 26 20:14:03 2016
New Revision: 1726872

URL: http://svn.apache.org/viewvc?rev=1726872&view=rev
Log:
PDFBOX-2852: replace deprecated calls

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDMetadata.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDMetadata.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDMetadata.java?rev=1726872&r1=1726871&r2=1726872&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDMetadata.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDMetadata.java Tue
Jan 26 20:14:03 2016
@@ -42,8 +42,8 @@ public class PDMetadata extends PDStream
     public PDMetadata( PDDocument document )
     {
         super( document );
-        getStream().setName( COSName.TYPE, "Metadata" );
-        getStream().setName( COSName.SUBTYPE, "XML" );
+        getCOSObject().setName( COSName.TYPE, "Metadata" );
+        getCOSObject().setName( COSName.SUBTYPE, "XML" );
     }
 
     /**
@@ -57,8 +57,8 @@ public class PDMetadata extends PDStream
     public PDMetadata( PDDocument doc, InputStream str) throws IOException
     {
         super( doc, str );
-        getStream().setName( COSName.TYPE, "Metadata" );
-        getStream().setName( COSName.SUBTYPE, "XML" );
+        getCOSObject().setName( COSName.TYPE, "Metadata" );
+        getCOSObject().setName( COSName.SUBTYPE, "XML" );
     }
 
     /**



Mime
View raw message