incubator-amber-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r962533 - /incubator/amber/trunk/spec-api/src/main/java/org/apache/amber/AbstractParameter.java
Date Fri, 09 Jul 2010 13:58:58 GMT
Author: simonetripodi
Date: Fri Jul  9 13:58:57 2010
New Revision: 962533

URL: http://svn.apache.org/viewvc?rev=962533&view=rev
Log:
the expected value first, when asserting

Modified:
    incubator/amber/trunk/spec-api/src/main/java/org/apache/amber/AbstractParameter.java

Modified: incubator/amber/trunk/spec-api/src/main/java/org/apache/amber/AbstractParameter.java
URL: http://svn.apache.org/viewvc/incubator/amber/trunk/spec-api/src/main/java/org/apache/amber/AbstractParameter.java?rev=962533&r1=962532&r2=962533&view=diff
==============================================================================
--- incubator/amber/trunk/spec-api/src/main/java/org/apache/amber/AbstractParameter.java (original)
+++ incubator/amber/trunk/spec-api/src/main/java/org/apache/amber/AbstractParameter.java Fri
Jul  9 13:58:57 2010
@@ -69,7 +69,7 @@ abstract class AbstractParameter<N>
      */
     public final int compareTo(AbstractParameter<N> parameter) {
         int nameComparison = String.valueOf(this.key).compareTo(String.valueOf(parameter.getKey()));
-        if (nameComparison == 0) {
+        if (0 == nameComparison) {
             return this.value.compareTo(parameter.getValue());
         }
         return nameComparison;



Mime
View raw message