"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

COSDictionary.java  (pdfbox-2.0.23-src):COSDictionary.java  (pdfbox-2.0.24-src)
skipping to change at line 1004 skipping to change at line 1004
* @param defaultValue The value returned if the entry is null. * @param defaultValue The value returned if the entry is null.
* *
* @return The entry converted to a boolean. * @return The entry converted to a boolean.
*/ */
public boolean getBoolean(COSName firstKey, COSName secondKey, boolean defau ltValue) public boolean getBoolean(COSName firstKey, COSName secondKey, boolean defau ltValue)
{ {
boolean retval = defaultValue; boolean retval = defaultValue;
COSBase bool = getDictionaryObject(firstKey, secondKey); COSBase bool = getDictionaryObject(firstKey, secondKey);
if (bool instanceof COSBoolean) if (bool instanceof COSBoolean)
{ {
retval = ((COSBoolean) bool).getValue(); retval = bool == COSBoolean.TRUE;
} }
return retval; return retval;
} }
/** /**
* Get an integer from an embedded dictionary. Useful for 1-1 mappings. defa ult:-1 * Get an integer from an embedded dictionary. Useful for 1-1 mappings. defa ult:-1
* *
* @param embeddedDictionary The name of the embedded dictionary. * @param embeddedDictionary The name of the embedded dictionary.
* @param key The key in the embedded dictionary. * @param key The key in the embedded dictionary.
* *
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)