Skip to content

Commit

Permalink
Remove outdated SuppressWarnings and tweak comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jan 10, 2024
1 parent d594b1a commit daebaca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions retrofit/src/main/java/retrofit2/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public boolean isDefaultMethod(Method method) {
/**
* Java 14 allows a regular lookup to succeed for invoking default methods.
*
* <p>https://bugs.openjdk.java.net/browse/JDK-8209005
* <p><a href="https://bugs.openjdk.java.net/browse/JDK-8209005">JDK-8209005</a>
*/
@IgnoreJRERequirement // Only used on JVM and Java 14.
@SuppressWarnings("NewApi") // Not used for Android.
Expand Down Expand Up @@ -254,7 +254,6 @@ static boolean isSupported() {

private @Nullable Method invokeDefaultMethod;

@SuppressWarnings("JavaReflectionMemberAccess") // Only available on Java 16, as we expect.
@Nullable
@Override
public Object invokeDefaultMethod(
Expand Down

0 comments on commit daebaca

Please sign in to comment.