usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdun...@apache.org
Subject usergrid git commit: Fix precondition
Date Mon, 19 Jun 2017 22:12:15 GMT
Repository: usergrid
Updated Branches:
  refs/heads/master 375814e00 -> a6fee789d


Fix precondition


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

Branch: refs/heads/master
Commit: a6fee789df698b349d6809af1b3faafc8f8b5472
Parents: 375814e
Author: Mike Dunker <mdunker@google.com>
Authored: Mon Jun 19 15:11:13 2017 -0700
Committer: Mike Dunker <mdunker@google.com>
Committed: Mon Jun 19 15:11:13 2017 -0700

----------------------------------------------------------------------
 .../usergrid/persistence/token/impl/TokenSerializationImpl.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/a6fee789/stack/corepersistence/token/src/main/java/org/apache/usergrid/persistence/token/impl/TokenSerializationImpl.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/token/src/main/java/org/apache/usergrid/persistence/token/impl/TokenSerializationImpl.java
b/stack/corepersistence/token/src/main/java/org/apache/usergrid/persistence/token/impl/TokenSerializationImpl.java
index 7825da0..b99d372 100644
--- a/stack/corepersistence/token/src/main/java/org/apache/usergrid/persistence/token/impl/TokenSerializationImpl.java
+++ b/stack/corepersistence/token/src/main/java/org/apache/usergrid/persistence/token/impl/TokenSerializationImpl.java
@@ -193,7 +193,7 @@ public class TokenSerializationImpl implements TokenSerialization {
 
         Preconditions.checkNotNull(tokenUUID, "token UUID is required");
         Preconditions.checkArgument(accessedTime > -1 , "accessedTime is required to be
positive");
-        Preconditions.checkArgument(inactiveTime > -1 , "inactiveTime is required to be
positive");
+        Preconditions.checkArgument(inactiveTime == Long.MIN_VALUE || inactiveTime > -1
, "inactiveTime is required to be positive");
         Preconditions.checkArgument(ttl > -1 , "ttl is required to be positive");
 
         logger.trace("updateTokenAccessTime, token UUID: {}, accessedTime: {}, inactiveTime:
{}, ttl: {}",


Mime
View raw message