You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by ja...@apache.org on 2018/01/22 22:10:00 UTC

samza git commit: fix the bug containsValue method

Repository: samza
Updated Branches:
  refs/heads/master d6686b0f0 -> 1756b0597


fix the bug containsValue method

containsValue method should invoke map.containsValue not map.containsKey

Author: michaelwong <mi...@users.noreply.github.com>

Reviewers: Jagadish <ja...@apache.org>

Closes #12 from jwongo/master


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

Branch: refs/heads/master
Commit: 1756b05972741c3344a1d3c2660b974b4558a5e3
Parents: d6686b0
Author: michaelwong <mi...@users.noreply.github.com>
Authored: Mon Jan 22 14:11:25 2018 -0800
Committer: Jagadish <jv...@linkedin.com>
Committed: Mon Jan 22 14:11:25 2018 -0800

----------------------------------------------------------------------
 samza-api/src/main/java/org/apache/samza/config/MapConfig.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/samza/blob/1756b059/samza-api/src/main/java/org/apache/samza/config/MapConfig.java
----------------------------------------------------------------------
diff --git a/samza-api/src/main/java/org/apache/samza/config/MapConfig.java b/samza-api/src/main/java/org/apache/samza/config/MapConfig.java
index d72d486..0b1ed98 100644
--- a/samza-api/src/main/java/org/apache/samza/config/MapConfig.java
+++ b/samza-api/src/main/java/org/apache/samza/config/MapConfig.java
@@ -80,7 +80,7 @@ public class MapConfig extends Config {
   }
 
   public boolean containsValue(Object v) {
-    return map.containsKey(v);
+    return map.containsValue(v);
   }
 
   @Override