tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r941230 - /tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/BindingProperty.java
Date Wed, 05 May 2010 10:10:50 GMT
Author: antelder
Date: Wed May  5 10:10:50 2010
New Revision: 941230

URL: http://svn.apache.org/viewvc?rev=941230&view=rev
Log:
No code change just format the code

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/BindingProperty.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/BindingProperty.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/BindingProperty.java?rev=941230&r1=941229&r2=941230&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/BindingProperty.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/BindingProperty.java
Wed May  5 10:10:50 2010
@@ -20,11 +20,11 @@
 package org.apache.tuscany.sca.binding.jms;
 
 public class BindingProperty {
-    
+
     private String name;
     private String type;
     private Object value;
-    
+
     public BindingProperty(String name, String type, Object value) {
         this.name = name;
         this.type = type;
@@ -38,34 +38,35 @@ public class BindingProperty {
     public String getType() {
         return type;
     }
-    
+
     public Object getValue() {
         return value;
     }
-    
+
     @Override
-    public boolean equals( Object object ) {
-        return ( object instanceof BindingProperty ) && equals( (BindingProperty)
object );
+    public boolean equals(Object object) {
+        return (object instanceof BindingProperty) && equals((BindingProperty)object);
     }
 
     /**
      * Test whether this and another Binding Property are equal.
+     * 
      * @param property
      * @return true if all fields of property match.
      */
-    public boolean equals( BindingProperty property ) {
-        if ( name == null && property.getName() != null )
+    public boolean equals(BindingProperty property) {
+        if (name == null && property.getName() != null)
+            return false;
+        else if (!name.equals(property.getName()))
             return false;
-        else if ( !name.equals( property.getName() ))
+        else if (type == null && property.getType() != null)
             return false;
-        else if ( type == null && property.getType() != null )
+        else if (!type.equals(property.getType()))
             return false;
-        else if ( !type.equals( property.getType() ))
+        else if (value == null && property.getValue() != null)
             return false;
-        else if ( value == null && property.getValue() != null )
+        else if (!value.equals(property.getValue()))
             return false;
-        else if ( !value.equals( property.getValue() ))
-                return false;
         return true;
     }
 }



Mime
View raw message