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 2015/05/01 17:37:40 UTC
svn commit: r1677168 -
/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentNameDictionary.java
Author: tilman
Date: Fri May 1 15:37:40 2015
New Revision: 1677168
URL: http://svn.apache.org/r1677168
Log:
PDFBOX-2783: Remove getCOSDictionary() method, adjust getCOSObject() return type
Modified:
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentNameDictionary.java
Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentNameDictionary.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentNameDictionary.java?rev=1677168&r1=1677167&r2=1677168&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentNameDictionary.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentNameDictionary.java Fri May 1 15:37:40 2015
@@ -28,8 +28,8 @@ import org.apache.pdfbox.pdmodel.common.
*/
public class PDDocumentNameDictionary implements COSObjectable
{
- private COSDictionary nameDictionary;
- private PDDocumentCatalog catalog;
+ private final COSDictionary nameDictionary;
+ private final PDDocumentCatalog catalog;
/**
* Constructor.
@@ -66,19 +66,10 @@ public class PDDocumentNameDictionary im
/**
* Convert this standard java object to a COS object.
*
- * @return The cos object that matches this Java object.
- */
- public COSBase getCOSObject()
- {
- return nameDictionary;
- }
-
- /**
- * Convert this standard java object to a COS object.
- *
* @return The cos dictionary for this object.
*/
- public COSDictionary getCOSDictionary()
+ @Override
+ public COSDictionary getCOSObject()
{
return nameDictionary;
}
@@ -107,7 +98,6 @@ public class PDDocumentNameDictionary im
dests = new PDDestinationNameTreeNode( dic );
}
-
return dests;
}
@@ -166,7 +156,7 @@ public class PDDocumentNameDictionary im
{
PDJavascriptNameTreeNode retval = null;
- COSDictionary dic = (COSDictionary)nameDictionary.getDictionaryObject( COSName.JAVA_SCRIPT );
+ COSDictionary dic = (COSDictionary) nameDictionary.getDictionaryObject(COSName.JAVA_SCRIPT);
if( dic != null )
{