camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ioca...@apache.org
Subject svn commit: r1231101 - in /camel/trunk/components/camel-krati/src/test/java/org/apache/camel/component/krati: KeyObject.java ValueObject.java
Date Fri, 13 Jan 2012 14:48:54 GMT
Author: iocanel
Date: Fri Jan 13 14:48:53 2012
New Revision: 1231101

URL: http://svn.apache.org/viewvc?rev=1231101&view=rev
Log:
[CAMEL-4889] Checkstyle fixes

Modified:
    camel/trunk/components/camel-krati/src/test/java/org/apache/camel/component/krati/KeyObject.java
    camel/trunk/components/camel-krati/src/test/java/org/apache/camel/component/krati/ValueObject.java

Modified: camel/trunk/components/camel-krati/src/test/java/org/apache/camel/component/krati/KeyObject.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-krati/src/test/java/org/apache/camel/component/krati/KeyObject.java?rev=1231101&r1=1231100&r2=1231101&view=diff
==============================================================================
--- camel/trunk/components/camel-krati/src/test/java/org/apache/camel/component/krati/KeyObject.java
(original)
+++ camel/trunk/components/camel-krati/src/test/java/org/apache/camel/component/krati/KeyObject.java
Fri Jan 13 14:48:53 2012
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.krati;
 
 import java.io.Serializable;
@@ -29,12 +28,18 @@ public class KeyObject implements Serial
 
     @Override
     public boolean equals(Object o) {
-        if (this == o) return true;
-        if (o == null || getClass() != o.getClass()) return false;
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
 
         KeyObject keyObject = (KeyObject) o;
 
-        if (id != null ? !id.equals(keyObject.id) : keyObject.id != null) return false;
+        if (id != null ? !id.equals(keyObject.id) : keyObject.id != null) {
+            return false;
+        }
 
         return true;
     }

Modified: camel/trunk/components/camel-krati/src/test/java/org/apache/camel/component/krati/ValueObject.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-krati/src/test/java/org/apache/camel/component/krati/ValueObject.java?rev=1231101&r1=1231100&r2=1231101&view=diff
==============================================================================
--- camel/trunk/components/camel-krati/src/test/java/org/apache/camel/component/krati/ValueObject.java
(original)
+++ camel/trunk/components/camel-krati/src/test/java/org/apache/camel/component/krati/ValueObject.java
Fri Jan 13 14:48:53 2012
@@ -29,13 +29,18 @@ public class ValueObject implements Seri
 
     @Override
     public boolean equals(Object o) {
-        if (this == o) return true;
-        if (o == null || getClass() != o.getClass()) return false;
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
 
         ValueObject that = (ValueObject) o;
 
-        if (value != null ? !value.equals(that.value) : that.value != null) return false;
-
+        if (value != null ? !value.equals(that.value) : that.value != null) {
+            return false;
+        }
         return true;
     }
 



Mime
View raw message