Files
build_make/core/proguard/checknotnull.flags
Vladimír Marko 09fdf2e308 Revert "Add Objects.requireNonNull to -convertchecknotnull rules"
This reverts commit 2e90cfa742.

Reason for revert: Broke two libcore tests from upstream.

Bug: 411591173
Change-Id: I33aaf4bb7ed13b0f2ff84725e5e1a0c1e4217b3b
2025-11-11 02:25:23 -08:00

24 lines
850 B
Plaintext

# Tell R8 that the following methods are check not null methods, and to
# replace invocations to them with a more concise nullness check that produces
# (slightly) less informative error messages.
# Note that we omit such optimizations for `Objects.requireNonNull`, as such
# messages are explicit and surfaced in the framework across API boundaries.
-convertchecknotnull class com.google.common.base.Preconditions {
** checkNotNull(...);
}
-convertchecknotnull class kotlin.jvm.internal.Intrinsics {
void checkNotNull(...);
void checkExpressionValueIsNotNull(...);
void checkNotNullExpressionValue(...);
void checkReturnedValueIsNotNull(...);
void checkFieldIsNotNull(...);
void checkParameterIsNotNull(...);
void checkNotNullParameter(...);
}
-convertchecknotnull class dagger.internal.Preconditions {
** checkNotNull*(...);
}