directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject [4/5] directory-kerby git commit: Checkstyle: fix LocalFinalVariableName check
Date Sat, 04 Jul 2015 12:08:37 GMT
Checkstyle: fix LocalFinalVariableName check


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

Branch: refs/heads/master
Commit: e36fa268406f66da712c7258e764deaf7e88dcda
Parents: 10bc3af
Author: Stefan Seelmann <mail@stefan-seelmann.de>
Authored: Sat Jul 4 01:05:01 2015 +0200
Committer: Stefan Seelmann <mail@stefan-seelmann.de>
Committed: Sat Jul 4 14:06:04 2015 +0200

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/tool/token/TokenInit.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/e36fa268/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/token/TokenInit.java
----------------------------------------------------------------------
diff --git a/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/token/TokenInit.java
b/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/token/TokenInit.java
index 5caa468..eb8fef5 100644
--- a/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/token/TokenInit.java
+++ b/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/token/TokenInit.java
@@ -58,14 +58,14 @@ public class TokenInit {
         authToken.setAudiences(aud);
 
         // Set expiration in 60 minutes
-        final Date NOW =  new Date(new Date().getTime() / 1000 * 1000);
-        Date exp = new Date(NOW.getTime() + 1000 * 60 * 60);
+        final Date now =  new Date(new Date().getTime() / 1000 * 1000);
+        Date exp = new Date(now.getTime() + 1000 * 60 * 60);
         authToken.setExpirationTime(exp);
 
-        Date nbf = NOW;
+        Date nbf = now;
         authToken.setNotBeforeTime(nbf);
 
-        Date iat = NOW;
+        Date iat = now;
         authToken.setIssueTime(iat);
 
         return authToken;


Mime
View raw message