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 508002c4..82a1cc5e 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 @@ public class JpaOAuth2AuthorizationService implements OAuth2AuthorizationService 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 20f14e91..487a3480 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 @@ public class JpaRegisteredClientRepository implements RegisteredClientRepository 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 534e2b7e..08617bf2 100644 --- a/docs/src/test/java/sample/AuthorizationCodeGrantFlow.java +++ b/docs/src/test/java/sample/AuthorizationCodeGrantFlow.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-2023 the original author or authors. + * Copyright 2020-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. @@ -58,7 +58,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. */ 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;