Skip to content

Commit d69fb0a

Browse files
committed
PDFBOX-5660: optimize logging
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1928811 13f79535-47bb-0310-9956-ffa450edef68
1 parent 753886d commit d69fb0a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,7 @@ private int repairLength1(byte[] bytes, int length1)
307307

308308
if (length1 - offset != 0 && offset > 0)
309309
{
310-
if (LOG.isWarnEnabled())
311-
{
312-
LOG.warn("Ignored invalid Length1 {} for Type 1 font {}", length1, getName());
313-
}
310+
LOG.warn("Ignored invalid Length1 {} for Type 1 font {}", () -> length1, () -> getName());
314311
return offset;
315312
}
316313

0 commit comments

Comments
 (0)