@@ -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