camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1410334 - in /camel/trunk: camel-core/src/main/java/org/apache/camel/component/language/LanguageEndpoint.java components/camel-mail/src/main/java/org/apache/camel/component/mail/NowSearchTerm.java
Date Fri, 16 Nov 2012 13:21:56 GMT
Author: ningjiang
Date: Fri Nov 16 13:21:55 2012
New Revision: 1410334

URL: http://svn.apache.org/viewvc?rev=1410334&view=rev
Log:
Fixed the CS errors

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/component/language/LanguageEndpoint.java
    camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/NowSearchTerm.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/language/LanguageEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/language/LanguageEndpoint.java?rev=1410334&r1=1410333&r2=1410334&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/language/LanguageEndpoint.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/language/LanguageEndpoint.java
Fri Nov 16 13:21:55 2012
@@ -44,7 +44,7 @@ public class LanguageEndpoint extends Re
     private String languageName;
     private String script;
     private boolean transform = true;
-    private boolean contentResolvedFromResource = false;
+    private boolean contentResolvedFromResource;
 
     public LanguageEndpoint() {
         // enable cache by default

Modified: camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/NowSearchTerm.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/NowSearchTerm.java?rev=1410334&r1=1410333&r2=1410334&view=diff
==============================================================================
--- camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/NowSearchTerm.java
(original)
+++ camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/NowSearchTerm.java
Fri Nov 16 13:21:55 2012
@@ -76,20 +76,20 @@ public class NowSearchTerm extends Compa
 
     private static boolean match(Date d1, Date d2, int comparison) {
         switch (comparison) {
-            case LE:
-                return d1.before(d2) || d1.equals(d2);
-            case LT:
-                return d1.before(d2);
-            case EQ:
-                return d1.equals(d2);
-            case NE:
-                return !d1.equals(d2);
-            case GT:
-                return d1.after(d2);
-            case GE:
-                return d1.after(d2) || d1.equals(d2);
-            default:
-                return false;
+        case LE:
+            return d1.before(d2) || d1.equals(d2);
+        case LT:
+            return d1.before(d2);
+        case EQ:
+            return d1.equals(d2);
+        case NE:
+            return !d1.equals(d2);
+        case GT:
+            return d1.after(d2);
+        case GE:
+            return d1.after(d2) || d1.equals(d2);
+        default:
+            return false;
         }
     }
 
@@ -113,5 +113,9 @@ public class NowSearchTerm extends Compa
 
         return true;
     }
+    
+    public int hashCode() {
+        return comparison;
+    }
 
 }



Mime
View raw message