summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples/calculator/src
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-01-13 15:55:12 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-01-13 15:55:12 +0000
commitabc56e04f12ed4aaeacf51e856316831443b7e25 (patch)
treec084cf2141b6914b7d983569458cf3c812550739 /sca-java-2.x/trunk/samples/calculator/src
parentc68b9673b268aa209ce7688d02e325e5b4e0028d (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
Diffstat (limited to 'sca-java-2.x/trunk/samples/calculator/src')
-rw-r--r--sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java2
-rw-r--r--sca-java-2.x/trunk/samples/calculator/src/test/java/calculator/CalculatorTestCase.java2
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");
}