You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ma...@apache.org on 2019/12/20 23:06:33 UTC
[archiva-redback-core] branch master updated: Optimize the fetch
millisecond problem
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-core.git
The following commit(s) were added to refs/heads/master by this push:
new 9f450f4 Optimize the fetch millisecond problem
new 2ec4862 Merge pull request #15 from lzf971107/patch-1
9f450f4 is described below
commit 9f450f4d1bc69406149136bd8c3c6b7369de568a
Author: withthewind <wi...@aliyun.com>
AuthorDate: Mon Dec 16 10:18:38 2019 +0800
Optimize the fetch millisecond problem
---
.../java/org/apache/archiva/redback/authentication/SimpleTokenData.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/SimpleTokenData.java b/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/SimpleTokenData.java
index e3302bf..16f6040 100644
--- a/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/SimpleTokenData.java
+++ b/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/SimpleTokenData.java
@@ -82,7 +82,7 @@ public final class SimpleTokenData implements Serializable, TokenData {
@Override
public boolean isValid() {
- return (new Date().getTime())<validBefore.getTime();
+ return (System.currentTimeMillis())<validBefore.getTime();
}
}