summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/sca/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClientImpl.java3
-rw-r--r--java/sca/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClientImpl.java3
-rw-r--r--java/sca/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/ParameterObject.java6
-rw-r--r--java/sca/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java6
4 files changed, 12 insertions, 6 deletions
diff --git a/java/sca/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClientImpl.java b/java/sca/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClientImpl.java
index 17197a7221..b5785e3c65 100644
--- a/java/sca/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClientImpl.java
+++ b/java/sca/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClientImpl.java
@@ -181,7 +181,8 @@ public class CallBackSeparateThreadClientImpl implements CallBackSeparateThreadC
} else if (aEventName.equals("SLOW")) {
final int newValue = slowCallbackCount.incrementAndGet();
//System.out.println("Received total of " + newValue + " slow call backs");
- } else
+ } else {
System.out.println("Unknown event type of " + aEventName);
+ }
}
}
diff --git a/java/sca/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClientImpl.java b/java/sca/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClientImpl.java
index 96b94ce70b..33d69c3921 100644
--- a/java/sca/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClientImpl.java
+++ b/java/sca/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClientImpl.java
@@ -89,8 +89,9 @@ public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient
// Make sure the marker file is not present before starting the test.
File aFile = new File("target/test4_marker");
- if (aFile.exists())
+ if (aFile.exists()) {
aFile.delete();
+ }
aCallBackService.setCallback(callBack);
diff --git a/java/sca/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/ParameterObject.java b/java/sca/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/ParameterObject.java
index 816c11dc17..724d94dffb 100644
--- a/java/sca/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/ParameterObject.java
+++ b/java/sca/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/ParameterObject.java
@@ -34,12 +34,14 @@ public class ParameterObject implements Serializable {
}
public boolean equals(Object o) {
- if (o == this)
+ if (o == this) {
return true;
+ }
if (o instanceof ParameterObject) {
ParameterObject other = (ParameterObject)o;
- if (field1 != null)
+ if (field1 != null) {
return field1.equals(other.field1);
+ }
}
return false;
}
diff --git a/java/sca/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java b/java/sca/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java
index 1f98343834..47d2d08a18 100644
--- a/java/sca/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java
+++ b/java/sca/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java
@@ -65,8 +65,9 @@ public class ScopeTestCase {
StateVerifier moduleScopeService = node.getService(StateVerifier.class, "ModuleScopeComponent");
for (int i = 1; i <= iterations; i++) {
moduleScopeService.setState(i);
- if (!moduleScopeService.checkState(i))
+ if (!moduleScopeService.checkState(i)) {
fail("The module scope service lost its state on iteration " + i);
+ }
}
}
}
@@ -77,8 +78,9 @@ public class ScopeTestCase {
StateVerifier requestScopeService = node.getService(StateVerifier.class, "RequestScopeComponent");
for (int i = 1; i <= iterations; i++) {
requestScopeService.setState(i);
- if (!requestScopeService.checkState(i))
+ if (!requestScopeService.checkState(i)) {
fail("The request scope service lost its state on iteration " + i);
+ }
}
}
}