diff --git a/docs/src/main/java/sample/jpa/service/authorization/JpaOAuth2AuthorizationService.java b/docs/src/main/java/sample/jpa/service/authorization/JpaOAuth2AuthorizationService.java index 508002c44..82a1cc5e5 100644 --- a/docs/src/main/java/sample/jpa/service/authorization/JpaOAuth2AuthorizationService.java +++ b/docs/src/main/java/sample/jpa/service/authorization/JpaOAuth2AuthorizationService.java @@ -1,5 +1,5 @@ /* - * Copyright 2022-2023 the original author or authors. + * Copyright 2022-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -280,7 +280,7 @@ private void setTokenValues( private Map parseMap(String data) { try { - return this.objectMapper.readValue(data, new TypeReference>() { + return this.objectMapper.readValue(data, new TypeReference<>() { }); } catch (Exception ex) { throw new IllegalArgumentException(ex.getMessage(), ex); diff --git a/docs/src/main/java/sample/jpa/service/client/JpaRegisteredClientRepository.java b/docs/src/main/java/sample/jpa/service/client/JpaRegisteredClientRepository.java index 20f14e915..487a3480a 100644 --- a/docs/src/main/java/sample/jpa/service/client/JpaRegisteredClientRepository.java +++ b/docs/src/main/java/sample/jpa/service/client/JpaRegisteredClientRepository.java @@ -1,5 +1,5 @@ /* - * Copyright 2022-2023 the original author or authors. + * Copyright 2022-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -137,7 +137,7 @@ private Client toEntity(RegisteredClient registeredClient) { private Map parseMap(String data) { try { - return this.objectMapper.readValue(data, new TypeReference>() { + return this.objectMapper.readValue(data, new TypeReference<>() { }); } catch (Exception ex) { throw new IllegalArgumentException(ex.getMessage(), ex); diff --git a/docs/src/test/java/sample/AuthorizationCodeGrantFlow.java b/docs/src/test/java/sample/AuthorizationCodeGrantFlow.java index 534e2b7e7..f30af88c4 100644 --- a/docs/src/test/java/sample/AuthorizationCodeGrantFlow.java +++ b/docs/src/test/java/sample/AuthorizationCodeGrantFlow.java @@ -58,7 +58,7 @@ */ public class AuthorizationCodeGrantFlow { private static final Pattern HIDDEN_STATE_INPUT_PATTERN = Pattern.compile(".+.+"); - private static final TypeReference> TOKEN_RESPONSE_TYPE_REFERENCE = new TypeReference>() { + private static final TypeReference> TOKEN_RESPONSE_TYPE_REFERENCE = new TypeReference<>() { }; private final MockMvc mockMvc;