Skip to content

Commit 753886d

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

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fixup/processor/AcroFormOrphanWidgetsProcessor.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,20 +252,17 @@ private void ensureFontResources(PDResources defaultResources, PDVariableText fi
252252
}
253253
defaultResources.put(fontName, pdFont);
254254
}
255-
else if (LOG.isDebugEnabled())
255+
else
256256
{
257257
LOG.debug("no suitable font found for field {} for font name {}",
258-
field.getFullyQualifiedName(), fontName.getName());
258+
field::getFullyQualifiedName, fontName::getName);
259259
}
260260
}
261261
}
262262
catch (IOException ioe)
263263
{
264-
if (LOG.isDebugEnabled())
265-
{
266-
LOG.debug("unable to handle font resources for field {}: {}",
267-
field.getFullyQualifiedName(), ioe.getMessage());
268-
}
264+
LOG.debug("unable to handle font resources for field {}: {}",
265+
field::getFullyQualifiedName, ioe::getMessage);
269266
}
270267
}
271268
}

0 commit comments

Comments
 (0)