svn commit: r929387 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/lang/ComparableRange.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r929387 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/lang/ComparableRange.java

doogie-3
Author: doogie
Date: Wed Mar 31 05:55:03 2010
New Revision: 929387

URL: http://svn.apache.org/viewvc?rev=929387&view=rev
Log:
Fix needless use of ().

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/lang/ComparableRange.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/lang/ComparableRange.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/lang/ComparableRange.java?rev=929387&r1=929386&r2=929387&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/lang/ComparableRange.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/lang/ComparableRange.java Wed Mar 31 05:55:03 2010
@@ -81,7 +81,7 @@ public class ComparableRange<T extends C
         if (this == range) {
             return 0;
         }
-        return (this.start.equals(range.start)? this.end.compareTo(range.end()): this.start.compareTo(range.start()));
+        return this.start.equals(range.start) ? this.end.compareTo(range.end()) : this.start.compareTo(range.start());
     }
 
     @Override
@@ -94,7 +94,7 @@ public class ComparableRange<T extends C
         if (this.isPoint) {
             return value.equals(this.start);
         }
-        return (value.compareTo(this.start) >= 0 && value.compareTo(this.end) <= 0);
+        return value.compareTo(this.start) >= 0 && value.compareTo(this.end) <= 0;
     }
 
     @Override