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 /chart2/qa | |
parent | c552aac9f889b094caaa35c3fd9d12fe7c3fc73c (diff) |
java: no need to instantiate String objects directly
Change-Id: I7610774c94bf673ed3b574ffce04c4ee6ca93c03
Diffstat (limited to 'chart2/qa')
-rw-r--r-- | chart2/qa/TestCaseOldAPI.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/qa/TestCaseOldAPI.java b/chart2/qa/TestCaseOldAPI.java index fec6430ca002..849c5597e12d 100644 --- a/chart2/qa/TestCaseOldAPI.java +++ b/chart2/qa/TestCaseOldAPI.java @@ -504,7 +504,7 @@ public class TestCaseOldAPI extends ComplexTestCase { try { - String aMyServiceName = new String( "com.sun.star.chart.BarDiagram" ); + String aMyServiceName = "com.sun.star.chart.BarDiagram"; String aServices[] = xFact.getAvailableServiceNames(); boolean bServiceFound = false; for( int i = 0; i < aServices.length; ++i ) @@ -753,7 +753,7 @@ public class TestCaseOldAPI extends ComplexTestCase { XMultiServiceFactory.class, mxOldDoc ); assure( "document is no factory", xFact != null ); - String aMyServiceName = new String( "com.sun.star.chart.StockDiagram" ); + String aMyServiceName = "com.sun.star.chart.StockDiagram"; XDiagram xDia = UnoRuntime.queryInterface( XDiagram.class, xFact.createInstance( aMyServiceName )); assure( aMyServiceName + " could not be created", xDia != null ); |