diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:27:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:18 +0200 |
commit | 4b4bff34027cca49fd13e82d33d1b399848838fa (patch) | |
tree | 361bde1ae9cf88160694bec9d5f3c1893d398f66 /toolkit/test/accessibility | |
parent | c552aac9f889b094caaa35c3fd9d12fe7c3fc73c (diff) |
java: no need to instantiate String objects directly
Change-Id: I7610774c94bf673ed3b574ffce04c4ee6ca93c03
Diffstat (limited to 'toolkit/test/accessibility')
4 files changed, 4 insertions, 4 deletions
diff --git a/toolkit/test/accessibility/AccessibleContextHandler.java b/toolkit/test/accessibility/AccessibleContextHandler.java index 01770209b298..8409a9a7da88 100644 --- a/toolkit/test/accessibility/AccessibleContextHandler.java +++ b/toolkit/test/accessibility/AccessibleContextHandler.java @@ -54,7 +54,7 @@ class AccessibleContextHandler if (aParent instanceof AccTreeNode) xContext = ((AccTreeNode)aParent).getContext(); - String sChild = new String(); + String sChild = ""; if (xContext != null) { switch( nIndex ) diff --git a/toolkit/test/accessibility/AccessibleTextHandler.java b/toolkit/test/accessibility/AccessibleTextHandler.java index 6d3d69892d2a..39ecbad6e4bc 100644 --- a/toolkit/test/accessibility/AccessibleTextHandler.java +++ b/toolkit/test/accessibility/AccessibleTextHandler.java @@ -348,7 +348,7 @@ class AccessibleTextHandler extends NodeHandler } catch(com.sun.star.lang.IllegalArgumentException e) { - aPortion = new String (""); + aPortion = ""; } // get attributes and make node with attribute children diff --git a/toolkit/test/accessibility/NodeFactory.java b/toolkit/test/accessibility/NodeFactory.java index 516ab25fb667..8c288396e4a2 100644 --- a/toolkit/test/accessibility/NodeFactory.java +++ b/toolkit/test/accessibility/NodeFactory.java @@ -126,7 +126,7 @@ class NodeFactory } } else - sDisplay = new String ("not accessible"); + sDisplay = "not accessible"; // create node, and add default handlers diff --git a/toolkit/test/accessibility/ov/StateSetView.java b/toolkit/test/accessibility/ov/StateSetView.java index 82a39f7b2c58..8933fb65c197 100644 --- a/toolkit/test/accessibility/ov/StateSetView.java +++ b/toolkit/test/accessibility/ov/StateSetView.java @@ -246,7 +246,7 @@ public static class StateSetSetView XAccessibleStateSet xStateSet = mxContext.getAccessibleStateSet(); if (xStateSet != null) { - String sStates = new String (); + String sStates = ""; short aStates[] = xStateSet.getStates(); for (int i=0; i<aStates.length; i++) { |