Skip to content

Commit cfc4a4f

Browse files
committed
PDFBOX-4892: simplify code, as suggested by valerybokov
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1891646 13f79535-47bb-0310-9956-ffa450edef68
1 parent ccc1224 commit cfc4a4f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

preflight/src/main/java/org/apache/pdfbox/preflight/metadata/SynchronizedMetaDataValidation.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,8 @@ protected ValidationException schemaAccessException(String target, Throwable cau
525525
*/
526526
protected ValidationError unsynchronizedMetaDataError(String target)
527527
{
528-
StringBuilder sb = new StringBuilder(80);
529-
sb.append(target).append(" present in the document catalog dictionary doesn't match with XMP information");
530-
return new ValidationError(PreflightConstants.ERROR_METADATA_MISMATCH, sb.toString());
528+
return new ValidationError(PreflightConstants.ERROR_METADATA_MISMATCH, target +
529+
" present in the document catalog dictionary doesn't match with XMP information");
531530
}
532531

533532
/**

0 commit comments

Comments
 (0)