diff options
author | mcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-08 11:57:02 +0000 |
---|---|---|
committer | mcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-08 11:57:02 +0000 |
commit | 3c2deb9bb4ac9c1930590fe3e0d42eb253cc578b (patch) | |
tree | ea63c97f7c39e72610e52c0731f777cedcb92fc3 | |
parent | 439b9cd4879c22ee98821fad62491a1517003cd6 (diff) |
Added { and } characters for code blocks where they did not have them so the code is consistent with the rest of the Tuscany codebase
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@724322 13f79535-47bb-0310-9956-ffa450edef68
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); + } } } } |