diff options
author | beckerdo <beckerdo@13f79535-47bb-0310-9956-ffa450edef68> | 2008-11-07 21:27:39 +0000 |
---|---|---|
committer | beckerdo <beckerdo@13f79535-47bb-0310-9956-ffa450edef68> | 2008-11-07 21:27:39 +0000 |
commit | 5182848f57d44d5d694080e7832cd0bdd66200f3 (patch) | |
tree | 01de6b4836d1e202ad05eed25570903745b4f991 | |
parent | 66fd5aa3a78244002093df0828622e8fca4937ce (diff) |
Implements some String instance optimizations.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@712271 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
2 files changed, 4 insertions, 4 deletions
diff --git a/java/sca/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java b/java/sca/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java index c71a5875f4..2d023ab448 100644 --- a/java/sca/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java +++ b/java/sca/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java @@ -1306,7 +1306,7 @@ public class StandardTypesDatabindingTestCase { } private void performTestNewSource(StandardTypesServiceClient serviceClient) throws Exception { - String xml = new String("<a>A<b>B</b><c>C</c></a>"); + String xml = "<a>A<b>B</b><c>C</c></a>"; Source[] srcs = new Source[3]; srcs[0] = new DOMSource(new String2Node().transform(xml, null)); srcs[1] = new SAXSource(new InputSource(new StringReader(xml))); @@ -1321,7 +1321,7 @@ public class StandardTypesDatabindingTestCase { } private void performTestNewSourceArray(StandardTypesServiceClient serviceClient) throws Exception { - String xml = new String("<a>A<b>B</b><c>C</c></a>"); + String xml = "<a>A<b>B</b><c>C</c></a>"; Source[] srcs = new Source[3]; srcs[0] = new DOMSource(new String2Node().transform(xml, null)); srcs[1] = new SAXSource(new InputSource(new StringReader(xml))); diff --git a/java/sca/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java b/java/sca/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java index dc49f0f407..6ed9026089 100644 --- a/java/sca/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java +++ b/java/sca/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java @@ -1318,7 +1318,7 @@ public class StandardTypesDatabindingTestCase { } private void performTestNewSource(StandardTypesServiceClient serviceClient) throws Exception { - String xml = new String("<a>A<b>B</b><c>C</c></a>"); + String xml = "<a>A<b>B</b><c>C</c></a>"; Source[] srcs = new Source[3]; srcs[0] = new DOMSource(new String2Node().transform(xml, null)); srcs[1] = new SAXSource(new InputSource(new StringReader(xml))); @@ -1333,7 +1333,7 @@ public class StandardTypesDatabindingTestCase { } private void performTestNewSourceArray(StandardTypesServiceClient serviceClient) throws Exception { - String xml = new String("<a>A<b>B</b><c>C</c></a>"); + String xml = "<a>A<b>B</b><c>C</c></a>"; Source[] srcs = new Source[3]; srcs[0] = new DOMSource(new String2Node().transform(xml, null)); srcs[1] = new SAXSource(new InputSource(new StringReader(xml))); |