You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by nt...@apache.org on 2017/10/31 15:42:40 UTC

ignite git commit: IGNITE-6252 Code style, minor notes.

Repository: ignite
Updated Branches:
  refs/heads/ignite-6252 13cf04e79 -> 5d63efb68


IGNITE-6252 Code style, minor notes.

Signed-off-by: nikolay_tikhonov <nt...@gridgain.com>


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

Branch: refs/heads/ignite-6252
Commit: 5d63efb689cd903f89206440061d19db7cbd61e2
Parents: 13cf04e
Author: nikolay_tikhonov <nt...@gridgain.com>
Authored: Tue Oct 31 18:42:39 2017 +0300
Committer: nikolay_tikhonov <nt...@gridgain.com>
Committed: Tue Oct 31 18:42:39 2017 +0300

----------------------------------------------------------------------
 .../cache/store/cassandra/session/CassandraSessionImpl.java | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/5d63efb6/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/session/CassandraSessionImpl.java
----------------------------------------------------------------------
diff --git a/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/session/CassandraSessionImpl.java b/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/session/CassandraSessionImpl.java
index 215351c..2988ebd 100644
--- a/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/session/CassandraSessionImpl.java
+++ b/modules/cassandra/store/src/main/java/org/apache/ignite/cache/store/cassandra/session/CassandraSessionImpl.java
@@ -267,15 +267,12 @@ public class CassandraSessionImpl implements CassandraSession {
                     throw new IgniteException(errorMsg, unknownEx);
 
                 // Remembering any of last errors.
-                if (tblAbsenceEx != null) {
+                if (tblAbsenceEx != null)
                     error = tblAbsenceEx;
-                }
-                else if (hostsAvailEx != null) {
+                else if (hostsAvailEx != null)
                     error = hostsAvailEx;
-                }
-                else if (prepStatEx != null) {
+                else if (prepStatEx != null)
                     error = prepStatEx;
-                }
                 
                 // Clean errors info before next communication with Cassandra.
                 unknownEx = null;