ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [03/48] incubator-ignite git commit: Coding guidelines
Date Fri, 23 Jan 2015 17:17:37 GMT
Coding guidelines


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

Branch: refs/heads/sprint-1
Commit: 84597ce4d6ffa235c1f9ce3444d2874de9319df5
Parents: 8733b7c
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Wed Jan 14 13:15:57 2015 +0400
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Wed Jan 14 13:15:57 2015 +0400

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/IgniteCacheProxy.java     | 6 ++++--
 .../processors/cache/GridCacheAbstractFullApiSelfTest.java     | 4 +++-
 2 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/84597ce4/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
index 333cb33..c6b4aba 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
@@ -945,7 +945,8 @@ public class IgniteCacheProxy<K, V> extends IgniteAsyncSupportAdapter
implements
             try {
                 curIter = fut.next();
                 return curIter != null;
-            } catch (IgniteCheckedException e) {
+            }
+            catch (IgniteCheckedException e) {
                 throw cacheException(e);
             }
         }
@@ -974,7 +975,8 @@ public class IgniteCacheProxy<K, V> extends IgniteAsyncSupportAdapter
implements
         @Override public void remove() {
             try {
                 delegate.remove(curIter.getKey(), curIter.getValue());
-            } catch (IgniteCheckedException e) {
+            }
+            catch (IgniteCheckedException e) {
                 throw cacheException(e);
             }
         }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/84597ce4/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheAbstractFullApiSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheAbstractFullApiSelfTest.java
b/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheAbstractFullApiSelfTest.java
index 504a435..4b83532 100644
--- a/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheAbstractFullApiSelfTest.java
+++ b/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheAbstractFullApiSelfTest.java
@@ -5260,6 +5260,7 @@ public abstract class GridCacheAbstractFullApiSelfTest extends GridCacheAbstract
 
     /**
      * Remove one element from the cache. Throws exception if cache is empty.
+     *
      * @param cache Cache.
      * @throws Exception
      */
@@ -5267,7 +5268,8 @@ public abstract class GridCacheAbstractFullApiSelfTest extends GridCacheAbstract
         Iterator<Cache.Entry<String, Integer>> iter = cache.iterator();
         if (iter.hasNext()) {
             iter.remove();
-        } else {
+        }
+        else {
             assert false;
         }
     }


Mime
View raw message