Skip to content

Commit 8a411c3

Browse files
committed
PDFBOX-5660: optimize, as suggested by Valery Bokov; closes #429
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1932452 13f79535-47bb-0310-9956-ffa450edef68
1 parent 98eb3d6 commit 8a411c3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ public FDFAnnotationText(Element element) throws IOException
6969
String icon = element.getAttribute("icon");
7070
if (icon != null && !icon.isEmpty())
7171
{
72-
setIcon(element.getAttribute("icon"));
72+
setIcon(icon);
7373
}
7474
String state = element.getAttribute("state");
7575
if (state != null && !state.isEmpty())
7676
{
7777
String statemodel = element.getAttribute("statemodel");
7878
if (statemodel != null && !statemodel.isEmpty())
7979
{
80-
setState(element.getAttribute("state"));
81-
setStateModel(element.getAttribute("statemodel"));
80+
setState(state);
81+
setStateModel(statemodel);
8282
}
8383
}
8484
}

0 commit comments

Comments
 (0)