فهرست منبع

Remove explicit type

Closes gh-2069

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
Tran Ngoc Nhan 1 ماه پیش
والد
کامیت
e7766fb27a

+ 2 - 2
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<String, Object> parseMap(String data) {
 		try {
-			return this.objectMapper.readValue(data, new TypeReference<Map<String, Object>>() {
+			return this.objectMapper.readValue(data, new TypeReference<>() {
 			});
 		} catch (Exception ex) {
 			throw new IllegalArgumentException(ex.getMessage(), ex);

+ 2 - 2
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<String, Object> parseMap(String data) {
 		try {
-			return this.objectMapper.readValue(data, new TypeReference<Map<String, Object>>() {
+			return this.objectMapper.readValue(data, new TypeReference<>() {
 			});
 		} catch (Exception ex) {
 			throw new IllegalArgumentException(ex.getMessage(), ex);

+ 2 - 2
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(".+<input type=\"hidden\" name=\"state\" value=\"([^\"]+)\">.+");
-	private static final TypeReference<Map<String, Object>> TOKEN_RESPONSE_TYPE_REFERENCE = new TypeReference<Map<String, Object>>() {
+	private static final TypeReference<Map<String, Object>> TOKEN_RESPONSE_TYPE_REFERENCE = new TypeReference<>() {
 	};
 
 	private final MockMvc mockMvc;