summaryrefslogtreecommitdiff
path: root/accessibility/workben
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-08-14 17:55:24 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-08-14 17:56:43 +0200
commit6e59262f22b114fd6b101bbaaf9411bc889cd621 (patch)
treecb989b5cb306be92379ec819b2a1ede426b115df /accessibility/workben
parentb5cd7f10b88340b53ce108f3667e70bc4ccb2dd0 (diff)
Some PMD cleaning
Diffstat (limited to 'accessibility/workben')
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/StateSetView.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/StateSetView.java b/accessibility/workben/org/openoffice/accessibility/awb/view/StateSetView.java
index 44638b099edc..1820f4e57f6c 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/StateSetView.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/StateSetView.java
@@ -174,17 +174,17 @@ public class StateSetView
}
// Draw string of set states.
- String sStates = new String ();
+ StringBuffer sStates = new StringBuffer ();
for (int i=0; i<aStates.length; i++)
{
if (i > 0)
- sStates = sStates + ", ";
- sStates = sStates + NameProvider.getStateName(aStates[i]);
+ sStates.append(", ");
+ sStates.append(NameProvider.getStateName(aStates[i]));
}
g.setTransform (aTransform);
g.translate (10,aWidgetArea.y+aWidgetArea.height-3);
g.scale (0.9,0.9);
- g.drawString (sStates,0,0);
+ g.drawString (sStates.toString(),0,0);
}
}