Skip to content

Commit 8eebef6

Browse files
committed
PDFBOX-4892: use constant
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1890704 13f79535-47bb-0310-9956-ffa450edef68
1 parent 23cb416 commit 8eebef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

preflight/src/main/java/org/apache/pdfbox/preflight/xobject/XObjFormValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void validate() throws ValidationException
8282
protected void checkMandatoryFields()
8383
{
8484
boolean lastMod = this.xobject.getItem(COSName.LAST_MODIFIED) != null;
85-
boolean pieceInfo = this.xobject.getItem("PieceInfo") != null;
85+
boolean pieceInfo = this.xobject.getItem(COSName.PIECE_INFO) != null;
8686
// type and subtype checked before to create the Validator.
8787
if (lastMod ^ pieceInfo)
8888
{

0 commit comments

Comments
 (0)