From daebaca08a7e00d0a69ac920bdda1e8d7377374c Mon Sep 17 00:00:00 2001 From: Goooler Date: Wed, 10 Jan 2024 10:35:43 +0800 Subject: [PATCH] Remove outdated SuppressWarnings and tweak comments --- retrofit/src/main/java/retrofit2/Platform.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/retrofit/src/main/java/retrofit2/Platform.java b/retrofit/src/main/java/retrofit2/Platform.java index ca48e0dd0f..936658970a 100644 --- a/retrofit/src/main/java/retrofit2/Platform.java +++ b/retrofit/src/main/java/retrofit2/Platform.java @@ -209,7 +209,7 @@ public boolean isDefaultMethod(Method method) { /** * Java 14 allows a regular lookup to succeed for invoking default methods. * - *

https://bugs.openjdk.java.net/browse/JDK-8209005 + *

JDK-8209005 */ @IgnoreJRERequirement // Only used on JVM and Java 14. @SuppressWarnings("NewApi") // Not used for Android. @@ -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(