You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2018/07/03 13:36:55 UTC
[cxf-fediz] branch 1.4.x-fixes updated: Use "L" when defining a
long constant
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch 1.4.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf-fediz.git
The following commit(s) were added to refs/heads/1.4.x-fixes by this push:
new 4aacd24 Use "L" when defining a long constant
4aacd24 is described below
commit 4aacd2468fbfeb10116b35b21a9f2b1d50502a64
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Tue Jul 3 14:11:52 2018 +0100
Use "L" when defining a long constant
---
.../java/org/apache/cxf/fediz/service/oidc/FedizSubjectCreator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/FedizSubjectCreator.java b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/FedizSubjectCreator.java
index dae3a10..5505ca0 100644
--- a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/FedizSubjectCreator.java
+++ b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/FedizSubjectCreator.java
@@ -134,7 +134,7 @@ public class FedizSubjectCreator implements SubjectCreator {
}
// Compute exp claim
- long currentTimeInSecs = System.currentTimeMillis() / 1000;
+ long currentTimeInSecs = System.currentTimeMillis() / 1000L;
idToken.setIssuedAt(currentTimeInSecs);
HttpSession httpSession = mc.getHttpServletRequest().getSession(false);
if (timeToLive > 0) {