diff --git a/pom.xml b/pom.xml index 8d4dfdb4..c0a6efd1 100644 --- a/pom.xml +++ b/pom.xml @@ -84,7 +84,6 @@ 28.0-jre 3.0.2 - 4.4.0 1.1.1 4.13 1.7.12 @@ -122,12 +121,7 @@ com.squareup.okhttp3 okhttp - ${okhttp.version} - - - com.squareup.okhttp3 - mockwebserver - ${okhttp.version} + 3.14.7 org.slf4j @@ -211,6 +205,12 @@ ${mockito-core.version} test + + com.squareup.okhttp3 + mockwebserver + 3.14.7 + test + org.powermock powermock-module-junit4 diff --git a/src/main/java/com/spotify/github/v3/clients/GitHubClient.java b/src/main/java/com/spotify/github/v3/clients/GitHubClient.java index 9af0b4bd..6f16a071 100644 --- a/src/main/java/com/spotify/github/v3/clients/GitHubClient.java +++ b/src/main/java/com/spotify/github/v3/clients/GitHubClient.java @@ -66,15 +66,15 @@ public class GitHubClient { static final Consumer IGNORE_RESPONSE_CONSUMER = (ignore) -> {}; static final TypeReference> LIST_COMMENT_TYPE_REFERENCE = - new TypeReference>() {}; + new TypeReference<>() {}; static final TypeReference> LIST_COMMIT_TYPE_REFERENCE = - new TypeReference>() {}; + new TypeReference<>() {}; static final TypeReference> LIST_STATUS_TYPE_REFERENCE = - new TypeReference>() {}; + new TypeReference<>() {}; static final TypeReference> LIST_FOLDERCONTENT_TYPE_REFERENCE = - new TypeReference>() {}; + new TypeReference<>() {}; static final TypeReference> LIST_PR_TYPE_REFERENCE = - new TypeReference>() {}; + new TypeReference<>() {}; private static final String GET_ACCESS_TOKEN_URL = "app/installations/%s/access_tokens"; diff --git a/src/test/java/com/spotify/github/v3/clients/GitHubAuthTest.java b/src/test/java/com/spotify/github/v3/clients/GitHubAuthTest.java index 821ee279..71a210c7 100644 --- a/src/test/java/com/spotify/github/v3/clients/GitHubAuthTest.java +++ b/src/test/java/com/spotify/github/v3/clients/GitHubAuthTest.java @@ -52,7 +52,7 @@ public class GitHubAuthTest { "com/spotify/github/v3/github-private-key")) .getFile()); private URI url; - private MockWebServer mockServer = new MockWebServer(); + private final MockWebServer mockServer = new MockWebServer(); private OkHttpClient client; private ChecksClient checksClient;