Skip to content

Commit 6b9b255

Browse files
committed
PDFBOX-5660: optimize, as suggested by Valery Bokov; closes #453
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1934530 13f79535-47bb-0310-9956-ffa450edef68
1 parent aba4428 commit 6b9b255

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/compress/COSWriterCompressionPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private COSBase addObjectToPool(COSObjectKey key, COSBase base)
117117
{
118118
return current;
119119
}
120-
if (current != null && key != null && objectPool.contains(key))
120+
if (key != null && objectPool.contains(key))
121121
{
122122
COSBase cosObject = objectPool.getObject(key);
123123
// check if the key belongs to the same object

0 commit comments

Comments
 (0)