diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-13 15:55:12 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-13 15:55:12 +0000 |
commit | abc56e04f12ed4aaeacf51e856316831443b7e25 (patch) | |
tree | c084cf2141b6914b7d983569458cf3c812550739 | |
parent | c68b9673b268aa209ce7688d02e325e5b4e0028d (diff) |
Add type of null on the createNode call
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@898813 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java | 2 | ||||
-rw-r--r-- | sca-java-2.x/trunk/samples/calculator/src/test/java/calculator/CalculatorTestCase.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java b/sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java index be8c3e23b5..24c279948b 100644 --- a/sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java +++ b/sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java @@ -30,7 +30,7 @@ import org.apache.tuscany.sca.node.NodeFactory; public class CalculatorClient { public static void main(String[] args) throws Exception { - Node node = NodeFactory.newInstance().createNode(null, new String[] {"target/classes"}).start(); + Node node = NodeFactory.newInstance().createNode((String)null, new String[] {"target/classes"}).start(); CalculatorService calculatorService = ((Client)node).getService(CalculatorService.class, "CalculatorServiceComponent"); diff --git a/sca-java-2.x/trunk/samples/calculator/src/test/java/calculator/CalculatorTestCase.java b/sca-java-2.x/trunk/samples/calculator/src/test/java/calculator/CalculatorTestCase.java index eaf56a1cfe..4f89ae8c8d 100644 --- a/sca-java-2.x/trunk/samples/calculator/src/test/java/calculator/CalculatorTestCase.java +++ b/sca-java-2.x/trunk/samples/calculator/src/test/java/calculator/CalculatorTestCase.java @@ -37,7 +37,7 @@ public class CalculatorTestCase{ @BeforeClass public static void setUpBeforeClass() throws Exception { // ideally it would be: node = NodeFactory.newInstance().createNode("target/classes").start(); - node = NodeFactory.newInstance().createNode(null, new String[] {"target/classes"}).start(); + node = NodeFactory.newInstance().createNode((String)null, new String[] {"target/classes"}).start(); calculatorService = node.getService(CalculatorService.class, "CalculatorServiceComponent"); } |