Skip to content

Commit eab58b6

Browse files
committed
PDFBOX-5660: replace lambda with method reference
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1928809 13f79535-47bb-0310-9956-ffa450edef68
1 parent d3fe53d commit eab58b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,19 @@ private void addFontFromWidget(PDResources acroFormResources, PDAnnotation annot
172172
{
173173
acroFormResources.put(fontName, widgetResources.getFont(fontName));
174174
LOG.debug("added font resource to AcroForm from widget for font name {}",
175-
() -> fontName.getName());
175+
fontName::getName);
176176
}
177177
}
178178
catch (IOException ioe)
179179
{
180180
LOG.debug("unable to add font to AcroForm for font name {}",
181-
() -> fontName.getName());
181+
fontName::getName);
182182
}
183183
}
184184
else
185185
{
186186
LOG.debug("font resource for widget was a subsetted font - ignored: {}",
187-
() -> fontName.getName());
187+
fontName::getName);
188188
}
189189
});
190190
}
@@ -239,7 +239,7 @@ private void ensureFontResources(PDResources defaultResources, PDVariableText fi
239239
if (defaultResources.getFont(fontName) == null)
240240
{
241241
LOG.debug("trying to add missing font resource for field {}",
242-
() -> field.getFullyQualifiedName());
242+
field::getFullyQualifiedName);
243243
FontMapper mapper = FontMappers.instance();
244244
FontMapping<TrueTypeFont> fontMapping = mapper.getTrueTypeFont(fontName.getName() , null);
245245
if (fontMapping != null)

0 commit comments

Comments
 (0)