camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: Removed useless null check related to CAMEL-8729
Date Fri, 01 May 2015 21:20:13 GMT
Repository: camel
Updated Branches:
  refs/heads/master 778e4b0e1 -> d93056a3b


Removed useless null check related to CAMEL-8729


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d93056a3
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d93056a3
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d93056a3

Branch: refs/heads/master
Commit: d93056a3bee96dd2a292e7895fd3db94da490a3f
Parents: 778e4b0
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Fri May 1 23:18:02 2015 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Fri May 1 23:18:02 2015 +0200

----------------------------------------------------------------------
 .../apache/camel/component/hazelcast/map/HazelcastMapProducer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/d93056a3/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapProducer.java
b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapProducer.java
index 0122097..ec453a7 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapProducer.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapProducer.java
@@ -96,7 +96,7 @@ public class HazelcastMapProducer extends HazelcastDefaultProducer {
      */
     private void query(String query, Exchange exchange) {
         Collection<Object> result;
-        if (ObjectHelper.isNotEmpty(query) && query != null) {
+        if (ObjectHelper.isNotEmpty(query)) {
             result = this.cache.values(new SqlPredicate(query));
         } else {
             result = this.cache.values();


Mime
View raw message