ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [34/50] ignite git commit: Fix test
Date Thu, 08 Sep 2016 14:46:16 GMT
Fix test


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

Branch: refs/heads/ignite-3199-1
Commit: 8a6458f896dec5ceebcdf989da3f958b4f9ec58e
Parents: eb08a67
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Thu Sep 8 12:26:31 2016 +0300
Committer: Pavel Tupitsyn <ptupitsyn@apache.org>
Committed: Thu Sep 8 12:26:31 2016 +0300

----------------------------------------------------------------------
 .../processors/platform/websession/LockEntryProcessor.java   | 2 +-
 .../processors/platform/websession/SessionStateData.java     | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/8a6458f8/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/LockEntryProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/LockEntryProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/LockEntryProcessor.java
index 7cf3016..72aa183 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/LockEntryProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/LockEntryProcessor.java
@@ -43,7 +43,7 @@ public class LockEntryProcessor implements CacheEntryProcessor<String,
SessionSt
 
         assert data != null;
 
-        if (data.locked())
+        if (data.isLocked())
             return data.lockTime();
 
         LockInfo lockInfo = (LockInfo)args[0];

http://git-wip-us.apache.org/repos/asf/ignite/blob/8a6458f8/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/SessionStateData.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/SessionStateData.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/SessionStateData.java
index 08a02e3..2c4a62f 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/SessionStateData.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/websession/SessionStateData.java
@@ -77,8 +77,8 @@ public class SessionStateData implements Binarylizable {
     /**
      * @return {@code True} if locked.
      */
-    public boolean locked() {
-        return lockTime == null;
+    public boolean isLocked() {
+        return lockTime != null;
     }
 
     /**
@@ -87,7 +87,7 @@ public class SessionStateData implements Binarylizable {
      * @param lock Lock.
      */
     public void lock(LockInfo lock) {
-        assert !locked();
+        assert !isLocked();
 
         lockId = lock.id();
         lockNodeId = lock.nodeId();
@@ -98,7 +98,7 @@ public class SessionStateData implements Binarylizable {
      * Clear lock info.
      */
     public void unlock() {
-        assert locked();
+        assert isLocked();
 
         lockId = 0;
         lockNodeId = null;


Mime
View raw message