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/10/26 10:33:35 UTC

[cxf-fediz] branch master updated: More diamond operator cleanup

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf-fediz.git


The following commit(s) were added to refs/heads/master by this push:
     new 6e0b73f  More diamond operator cleanup
6e0b73f is described below

commit 6e0b73f48a4f26e807e688654f58a0e715a421a8
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Fri Oct 26 11:33:18 2018 +0100

    More diamond operator cleanup
---
 .../main/java/org/apache/cxf/fediz/core/SecurityTokenThreadLocal.java | 2 +-
 .../java/org/apache/cxf/fediz/core/exception/ProcessingException.java | 2 +-
 .../cxf/fediz/service/oidc/clients/ClientRegistrationService.java     | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins/core/src/main/java/org/apache/cxf/fediz/core/SecurityTokenThreadLocal.java b/plugins/core/src/main/java/org/apache/cxf/fediz/core/SecurityTokenThreadLocal.java
index 91c023f..f81d7d5 100644
--- a/plugins/core/src/main/java/org/apache/cxf/fediz/core/SecurityTokenThreadLocal.java
+++ b/plugins/core/src/main/java/org/apache/cxf/fediz/core/SecurityTokenThreadLocal.java
@@ -28,7 +28,7 @@ import org.w3c.dom.Element;
 public final class SecurityTokenThreadLocal {
 
     private static final ThreadLocal<Element> TLS =
-        new ThreadLocal<Element>();
+        new ThreadLocal<>();
 
     private SecurityTokenThreadLocal() {
     }
diff --git a/plugins/core/src/main/java/org/apache/cxf/fediz/core/exception/ProcessingException.java b/plugins/core/src/main/java/org/apache/cxf/fediz/core/exception/ProcessingException.java
index b838664..fcf1496 100644
--- a/plugins/core/src/main/java/org/apache/cxf/fediz/core/exception/ProcessingException.java
+++ b/plugins/core/src/main/java/org/apache/cxf/fediz/core/exception/ProcessingException.java
@@ -40,7 +40,7 @@ public class ProcessingException extends Exception {
      * A map of Fault Code to Fault Strings
      */
     private static final java.util.Map<TYPE, String> TYPE_MAP =
-            new java.util.HashMap<TYPE, String>();
+            new java.util.HashMap<>();
 
     static {
         TYPE_MAP.put(TYPE.BAD_REQUEST, "The specified request is not understood");
diff --git a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/clients/ClientRegistrationService.java b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/clients/ClientRegistrationService.java
index 4950d9b..964143a 100644
--- a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/clients/ClientRegistrationService.java
+++ b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/clients/ClientRegistrationService.java
@@ -180,10 +180,10 @@ public class ClientRegistrationService {
         Comparator<ServerAccessToken> tokenComp = new TokenComparator();
         UserSubject subject = new OidcUserSubject(getUserName());
         List<ServerAccessToken> accessTokens =
-            new ArrayList<ServerAccessToken>(dataProvider.getAccessTokens(c, subject));
+            new ArrayList<>(dataProvider.getAccessTokens(c, subject));
         Collections.sort(accessTokens, tokenComp);
         List<RefreshToken> refreshTokens =
-                new ArrayList<RefreshToken>(dataProvider.getRefreshTokens(c, subject));
+                new ArrayList<>(dataProvider.getRefreshTokens(c, subject));
         Collections.sort(refreshTokens, tokenComp);
         return new ClientTokens(c, accessTokens, refreshTokens);
     }