Skip to content

Commit

Permalink
Bump Java Parent to 32 and few misc dep upgrades (#1520)
Browse files Browse the repository at this point in the history
* Bump Java Parent to 32 and few misc dep upgrades

* fixed pmd error
  • Loading branch information
arvindkrishnakumar-okta authored Jun 28, 2024
1 parent 12fcfe1 commit e11a28d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public enum AuthorizationMode {
private static final Map<AuthenticationScheme, AuthorizationMode> lookup = new HashMap<>();

static {
for (AuthorizationMode authorizationMode : AuthorizationMode.values()) {
for (AuthorizationMode authorizationMode : values()) {
lookup.put(authorizationMode.getAuthenticationScheme(), authorizationMode);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class ReadmeSnippets {
private static final Logger log = LoggerFactory.getLogger(ReadmeSnippets.class);

private final ApiClient client = Clients.builder().build();
private final User user = null;
private static final User user = null;

private void createClient() {
ApiClient client = Clients.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ public Map<String, String> parse(String source) {

@Override
public Map<String, String> parse(Resource resource) throws IOException {
InputStream is = resource.getInputStream();
Scanner scanner = new Scanner(is, StandardCharsets.UTF_8.name());
Scanner scanner;
try (InputStream inputStream = resource.getInputStream()) {
scanner = new Scanner(inputStream, StandardCharsets.UTF_8.name());
}
return parse(scanner);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ private DPopHandshakeState handleHandshakeResponse(JsonNode errorField, Header n
this.nonceValidUntil = Instant.now().plusSeconds(NONCE_VALID_SECONDS);
return DPopHandshakeState.FIRST_USE_DPOP_NONCE;
}
default:
return DPopHandshakeState.UNEXPECTED_STATE;
}
}
return DPopHandshakeState.UNEXPECTED_STATE;
Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.okta</groupId>
<artifactId>okta-parent</artifactId>
<version>30</version>
<version>32</version>
</parent>

<groupId>com.okta.sdk</groupId>
Expand All @@ -34,13 +34,13 @@
<inceptionYear>2017</inceptionYear>

<properties>
<jackson.version>2.17.0</jackson.version>
<jackson.version>2.17.1</jackson.version>
<snakeyaml.version>2.2</snakeyaml.version>
<bouncycastle.version>1.78</bouncycastle.version>
<jjwt.version>0.12.5</jjwt.version>
<bouncycastle.version>1.78.1</bouncycastle.version>
<jjwt.version>0.12.6</jjwt.version>
<org.apache.httpcomponents.client5.version>5.3.1</org.apache.httpcomponents.client5.version>
<okta.sdk.previousVersion>17.0.0</okta.sdk.previousVersion>
<okta.commons.version>1.3.5</okta.commons.version>
<okta.commons.version>1.3.6</okta.commons.version>
<com.google.auto.service.version>1.1.1</com.google.auto.service.version>
<github.slug>okta/okta-sdk-java</github.slug>
</properties>
Expand Down

0 comments on commit e11a28d

Please sign in to comment.