Skip to content

Commit f160864

Browse files
cpovirkGoogle Java Core Libraries
authored andcommitted
Suppress NewApi findings.
RELNOTES=n/a PiperOrigin-RevId: 826585931
1 parent c755b97 commit f160864

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

android/guava/src/com/google/common/reflect/Types.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ Type usedInGenericType(Type type) {
609609
* should really validate that it works as desired for all Android versions that we support.
610610
*/
611611
@IgnoreJRERequirement
612-
@SuppressWarnings("AndroidJdkLibsChecker")
612+
@SuppressWarnings("NewApi")
613613
@Override
614614
String typeName(Type type) {
615615
return type.getTypeName();
@@ -627,6 +627,7 @@ Type usedInGenericType(Type type) {
627627
}
628628

629629
@IgnoreJRERequirement
630+
@SuppressWarnings("NewApi") // see JAVA8.typeName
630631
@Override
631632
String typeName(Type type) {
632633
return type.getTypeName();

guava/src/com/google/common/reflect/Types.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ Type usedInGenericType(Type type) {
608608
* logic in the static initializer, which does not check for getTypeName specifically. We
609609
* should really validate that it works as desired for all Android versions that we support.
610610
*/
611-
@SuppressWarnings("AndroidJdkLibsChecker")
611+
@SuppressWarnings("NewApi")
612612
@Override
613613
String typeName(Type type) {
614614
return type.getTypeName();
@@ -625,6 +625,7 @@ Type usedInGenericType(Type type) {
625625
return JAVA8.usedInGenericType(type);
626626
}
627627

628+
@SuppressWarnings("NewApi") // see JAVA8.typeName
628629
@Override
629630
String typeName(Type type) {
630631
return type.getTypeName();

0 commit comments

Comments
 (0)