Skip to content

Commit c8c7a23

Browse files
committed
PDFBOX-5660: remove unneeded code, as suggested by Valery Bokov; closes #456
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1934765 13f79535-47bb-0310-9956-ffa450edef68
1 parent a219299 commit c8c7a23

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,7 @@ private List<COSBase> addStructure(List<COSBase> cosBaseList)
195195
private List<COSBase> addStructure(COSBase current)
196196
{
197197
COSBase base = current;
198-
if (!current.isDirect() && //
199-
(current instanceof COSStream //
200-
|| current instanceof COSDictionary //
201-
|| current instanceof COSArray))
198+
if (!current.isDirect() && (current instanceof COSDictionary || current instanceof COSArray))
202199
{
203200
base = addObjectToPool(base.getKey(), current);
204201
}

0 commit comments

Comments
 (0)