Revert "Use Java 8 for examples project"

This reverts commit 7b333150a2.
This commit is contained in:
Joe Grandja
2022-01-21 01:41:30 -05:00
parent e73bef58a3
commit dce3f02f66
4 changed files with 6 additions and 4 deletions

View File

@@ -1,10 +1,12 @@
plugins {
//id 'org.springframework.boot' version '2.6.2'
//id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'org.springframework.security'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
sourceCompatibility = '11'
repositories {
mavenCentral()

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<Map<String, Object>>() {
return this.objectMapper.readValue(data, new TypeReference<>() {
});
} 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<Map<String, Object>>() {
return this.objectMapper.readValue(data, new TypeReference<>() {
});
} 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<Map<String, Object>>() {
private static final TypeReference<Map<String, Object>> TOKEN_RESPONSE_TYPE_REFERENCE = new TypeReference<>() {
};
public final SpringTestContext spring = new SpringTestContext(this);