Skip to content

Commit d9737c7

Browse files
committed
PDFBOX-5660: Sonar fix
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1924889 13f79535-47bb-0310-9956-ffa450edef68
1 parent d31a200 commit d9737c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotationStamp.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ private COSDictionary parseStampAnnotationAppearanceXML(Element appearanceXML) t
148148
NodeList nodeList = appearanceXML.getChildNodes();
149149
String parentAttrKey = appearanceXML.getAttribute("KEY");
150150
LOG.debug("Appearance Root - tag: {}, name: {}, key: {}, children: {}",
151-
appearanceXML.getTagName(), appearanceXML.getNodeName(), parentAttrKey,
152-
nodeList.getLength());
151+
appearanceXML::getTagName, appearanceXML::getNodeName, () -> parentAttrKey,
152+
nodeList::getLength);
153153

154154
// Currently only handles Appearance dictionary (AP key on the root)
155155
if (!"AP".equals(appearanceXML.getAttribute("KEY")))
156156
{
157-
LOG.warn("{} => Not handling element: {} with key: {}", parentAttrKey,
158-
appearanceXML.getTagName(), appearanceXML.getAttribute("KEY"));
157+
LOG.warn("{} => Not handling element: {} with key: {}", () -> parentAttrKey,
158+
appearanceXML::getTagName, () -> appearanceXML.getAttribute("KEY"));
159159
return dictionary;
160160
}
161161
for (int i = 0; i < nodeList.getLength(); i++)
@@ -168,9 +168,9 @@ private COSDictionary parseStampAnnotationAppearanceXML(Element appearanceXML) t
168168
if ("STREAM".equalsIgnoreCase(childTagName))
169169
{
170170
LOG.debug("{} => Process {} item in the dictionary after processing the {}",
171-
parentAttrKey, child.getAttribute("KEY"), childTagName);
171+
() -> parentAttrKey, () -> child.getAttribute("KEY"), () -> childTagName);
172172
dictionary.setItem(child.getAttribute("KEY"), parseStreamElement(child));
173-
LOG.debug("{} => Set {}", parentAttrKey, child.getAttribute("KEY"));
173+
LOG.debug("{} => Set {}", () -> parentAttrKey, () -> child.getAttribute("KEY"));
174174
}
175175
else
176176
{

0 commit comments

Comments
 (0)