ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivasilin...@apache.org
Subject incubator-ignite git commit: #ignite-964: remove unused functions.
Date Fri, 10 Jul 2015 15:29:31 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-964 2d47f7bcb -> 3ab0552e1


#ignite-964: remove unused functions.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/3ab0552e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/3ab0552e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/3ab0552e

Branch: refs/heads/ignite-964
Commit: 3ab0552e12b0d0f110363c58b2263046bffab81e
Parents: 2d47f7b
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Fri Jul 10 18:29:22 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Fri Jul 10 18:29:22 2015 +0300

----------------------------------------------------------------------
 .../main/java/org/apache/ignite/json/JSONCacheObject.java | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/3ab0552e/modules/core/src/main/java/org/apache/ignite/json/JSONCacheObject.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/json/JSONCacheObject.java b/modules/core/src/main/java/org/apache/ignite/json/JSONCacheObject.java
index 2b8de1b..0eb5f28 100644
--- a/modules/core/src/main/java/org/apache/ignite/json/JSONCacheObject.java
+++ b/modules/core/src/main/java/org/apache/ignite/json/JSONCacheObject.java
@@ -32,14 +32,6 @@ public class JSONCacheObject extends HashMap<Object, Object> {
 
     /**
      * @param key Field name.
-     * @param val Field value.
-     */
-    public void addField(Object key, Object val) {
-        put(key, val);
-    }
-
-    /**
-     * @param key Field name.
      * @return Field value.
      */
     public Object getField(Object key) {
@@ -62,7 +54,7 @@ public class JSONCacheObject extends HashMap<Object, Object> {
             JSONCacheObject res = new JSONCacheObject();
 
             for (Object key : o1.keySet())
-                res.addField(toSimpleObject(key), toSimpleObject(o1.get(key)));
+                res.put(toSimpleObject(key), toSimpleObject(o1.get(key)));
 
             return res;
         }


Mime
View raw message