# IGNITE-167 Made javadocs more informative.

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

Branch: refs/heads/ignite-sql-tests
Commit: 5dce207830e9df7519be3525d9f67f91792b84f5
Parents: fc248df
Author: AKuznetsov <akuznet...@gridgain.com>
Authored: Thu Feb 5 17:27:40 2015 +0700
Committer: AKuznetsov <akuznet...@gridgain.com>
Committed: Thu Feb 5 17:27:40 2015 +0700

----------------------------------------------------------------------
 .../ignite/internal/processors/rest/GridRestCommand.java  |  4 ++--
 .../rest/handlers/cache/GridCacheCommandHandler.java      | 10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5dce2078/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestCommand.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestCommand.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestCommand.java
index fce6332..ef31fad 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestCommand.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestCommand.java
@@ -54,10 +54,10 @@ public enum GridRestCommand {
     /** Replace cache value only if there is currently a mapping for it. */
     CACHE_REPLACE("rep"),
 
-    /** Increment. */
+    /** Increment of atomic long cache data structure. */
     CACHE_INCREMENT("incr"),
 
-    /** Decrement. */
+    /** Decrement of atomic long cache data structure. */
     CACHE_DECREMENT("decr"),
 
     /** Compare and set. */

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5dce2078/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/cache/GridCacheCommandHandler.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/cache/GridCacheCommandHandler.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/cache/GridCacheCommandHandler.java
index b51fc99..de24934 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/cache/GridCacheCommandHandler.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/cache/GridCacheCommandHandler.java
@@ -410,19 +410,19 @@ public class GridCacheCommandHandler extends 
GridRestCommandHandlerAdapter {
     }
 
     /**
-     * Handles increment and decrement commands.
+     * Handles increment and decrement commands for cache atomic long data 
structures.
      *
      * @param cache Cache.
-     * @param key Key.
+     * @param name Name of cache atomic long.
      * @param req Request.
      * @param decr Whether to decrement (increment otherwise).
      * @return Future of operation result.
      * @throws IgniteCheckedException In case of error.
      */
-    private static IgniteInternalFuture<?> 
incrementOrDecrement(CacheProjection<Object, Object> cache, String key,
+    private static IgniteInternalFuture<?> 
incrementOrDecrement(CacheProjection<Object, Object> cache, String name,
         GridRestCacheRequest req, final boolean decr) throws 
IgniteCheckedException {
         assert cache != null;
-        assert key != null;
+        assert name != null;
         assert req != null;
 
         Long init = req.initial();
@@ -431,7 +431,7 @@ public class GridCacheCommandHandler extends 
GridRestCommandHandlerAdapter {
         if (delta == null)
             throw new 
IgniteCheckedException(GridRestCommandHandlerAdapter.missingParameter("delta"));
 
-        final CacheAtomicLong l = 
cache.cache().dataStructures().atomicLong(key, init != null ? init : 0, true);
+        final CacheAtomicLong l = 
cache.cache().dataStructures().atomicLong(name, init != null ? init : 0, true);
 
         final Long d = delta;
 

Reply via email to