tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From radcor...@apache.org
Subject [tomee] 04/12: Not a good practice to instantiate a long
Date Fri, 04 Jan 2019 13:30:53 GMT
This is an automated email from the ASF dual-hosted git repository.

radcortez pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git

commit b4ceb936e7ddf509ee182b7237790705c1f481d0
Author: ivanjunckes <ijunckes@tomitribe.com>
AuthorDate: Thu Jan 3 11:16:25 2019 -0200

    Not a good practice to instantiate a long
---
 .../tomee/microprofile/jwt/principal/DefaultJWTCallerPrincipal.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/principal/DefaultJWTCallerPrincipal.java
b/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/principal/DefaultJWTCallerPrincipal.java
index 991fd4f..12f3044 100644
--- a/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/principal/DefaultJWTCallerPrincipal.java
+++ b/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/principal/DefaultJWTCallerPrincipal.java
@@ -126,7 +126,7 @@ public class DefaultJWTCallerPrincipal extends JWTCallerPrincipal {
                 try {
                     claim = claimsSet.getClaimValue(claimType.name(), Long.class);
                     if (claim == null) {
-                        claim = new Long(0);
+                        claim = 0L;
                     }
                 } catch (final MalformedClaimException e) {
                     logger.log(Level.FINEST, "Can't retrieve 'updated_at' a malformed claim.",
e);


Mime
View raw message