Skip to content

Commit e7766fb

Browse files
ngocnhan-tran1996jgrandja
authored andcommitted
Remove explicit type
Closes gh-2069 Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent fcd73d1 commit e7766fb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/src/main/java/sample/jpa/service/authorization/JpaOAuth2AuthorizationService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2023 the original author or authors.
2+
* Copyright 2022-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -280,7 +280,7 @@ private void setTokenValues(
280280

281281
private Map<String, Object> parseMap(String data) {
282282
try {
283-
return this.objectMapper.readValue(data, new TypeReference<Map<String, Object>>() {
283+
return this.objectMapper.readValue(data, new TypeReference<>() {
284284
});
285285
} catch (Exception ex) {
286286
throw new IllegalArgumentException(ex.getMessage(), ex);

docs/src/main/java/sample/jpa/service/client/JpaRegisteredClientRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2023 the original author or authors.
2+
* Copyright 2022-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -137,7 +137,7 @@ private Client toEntity(RegisteredClient registeredClient) {
137137

138138
private Map<String, Object> parseMap(String data) {
139139
try {
140-
return this.objectMapper.readValue(data, new TypeReference<Map<String, Object>>() {
140+
return this.objectMapper.readValue(data, new TypeReference<>() {
141141
});
142142
} catch (Exception ex) {
143143
throw new IllegalArgumentException(ex.getMessage(), ex);

docs/src/test/java/sample/AuthorizationCodeGrantFlow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2023 the original author or authors.
2+
* Copyright 2020-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -58,7 +58,7 @@
5858
*/
5959
public class AuthorizationCodeGrantFlow {
6060
private static final Pattern HIDDEN_STATE_INPUT_PATTERN = Pattern.compile(".+<input type=\"hidden\" name=\"state\" value=\"([^\"]+)\">.+");
61-
private static final TypeReference<Map<String, Object>> TOKEN_RESPONSE_TYPE_REFERENCE = new TypeReference<Map<String, Object>>() {
61+
private static final TypeReference<Map<String, Object>> TOKEN_RESPONSE_TYPE_REFERENCE = new TypeReference<>() {
6262
};
6363

6464
private final MockMvc mockMvc;

0 commit comments

Comments
 (0)