Use Java 8 for examples project

This commit is contained in:
Steve Riesenberg
2022-01-07 16:55:48 -06:00
parent a20f321a19
commit 7b333150a2
4 changed files with 4 additions and 6 deletions

View File

@@ -234,7 +234,7 @@ public class JpaOAuth2AuthorizationService implements OAuth2AuthorizationService
private Map<String, Object> parseMap(String data) {
try {
return this.objectMapper.readValue(data, new TypeReference<>() {
return this.objectMapper.readValue(data, new TypeReference<Map<String, Object>>() {
});
} catch (Exception ex) {
throw new IllegalArgumentException(ex.getMessage(), ex);

View File

@@ -135,7 +135,7 @@ public class JpaRegisteredClientRepository implements RegisteredClientRepository
private Map<String, Object> parseMap(String data) {
try {
return this.objectMapper.readValue(data, new TypeReference<>() {
return this.objectMapper.readValue(data, new TypeReference<Map<String, Object>>() {
});
} catch (Exception ex) {
throw new IllegalArgumentException(ex.getMessage(), ex);

View File

@@ -82,7 +82,7 @@ import static sample.util.RegisteredClients.messagingClient;
public class JpaTests {
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<>() {
private static final TypeReference<Map<String, Object>> TOKEN_RESPONSE_TYPE_REFERENCE = new TypeReference<Map<String, Object>>() {
};
public final SpringTestContext spring = new SpringTestContext(this);