summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:27:21 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:18 +0200
commit4b4bff34027cca49fd13e82d33d1b399848838fa (patch)
tree361bde1ae9cf88160694bec9d5f3c1893d398f66 /framework
parentc552aac9f889b094caaa35c3fd9d12fe7c3fc73c (diff)
java: no need to instantiate String objects directly
Change-Id: I7610774c94bf673ed3b574ffce04c4ee6ca93c03
Diffstat (limited to 'framework')
-rw-r--r--framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java b/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java
index 45d0c675ec56..07b73a5974cb 100644
--- a/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java
+++ b/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java
@@ -359,8 +359,8 @@ public class AcceleratorsConfigurationTest
{
System.out.println("** get command by " + sKeys[i] + " **");
- String sCmdFromCache = new String(); // get a value using XAcceleratorConfiguration API
- String sCmdFromConfiguration = new String(); // get a value using configuration API
+ String sCmdFromCache = ""; // get a value using XAcceleratorConfiguration API
+ String sCmdFromConfiguration = ""; // get a value using configuration API
// GET shortcuts/commands using XAcceleratorConfiguration API
sCmdFromCache = xAccelCfg.getCommandByKeyEvent(convertShortcut2AWTKey(sKeys[i]));
@@ -538,7 +538,7 @@ public class AcceleratorsConfigurationTest
private String getCommandFromConfiguration(XNameAccess xAccess, String sKey)
throws java.lang.Exception
{
- String sCommand = new String();
+ String sCommand = "";
if (xAccess.hasByName(sKey))
{
@@ -690,7 +690,7 @@ public class AcceleratorsConfigurationTest
private String getOfficeLocale()
throws java.lang.Exception
{
- String sLocale = new String();
+ String sLocale = "";
String sConfigPath = "org.openoffice.Setup";
boolean bReadOnly = true;