- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for RestrictedApiChecker (0.13 sec)
-
android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
assertThrows( Exception.class, () -> new RecursiveTypeBoundBugExample<>().testAllDeclarations()); assertThat(e).hasCauseThat().isInstanceOf(AssertionError.class); } @SuppressWarnings("RestrictedApiChecker") // crashes under JDK8, which EP no longer supports public void testSubtypeOfInnerClass_nonStaticAnonymousClass() { TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {};
Registered: 2025-05-30 12:43 - Last Modified: 2024-12-19 18:03 - 20.4K bytes - Viewed (0) -
guava/src/com/google/common/annotations/VisibleForTesting.java
* that they will. If the method breaks the encapsulation of its class, then its internal * representation will be hard to change. Instead, use <a * href="http://errorprone.info/bugpattern/RestrictedApi">RestrictedApiChecker</a>, which enforces * fine-grained visibility policies. * * @author Johannes Henkel */ @GwtCompatible public @interface VisibleForTesting {
Registered: 2025-05-30 12:43 - Last Modified: 2023-01-30 22:25 - 1.3K bytes - Viewed (0) -
android/guava/src/com/google/common/annotations/VisibleForTesting.java
* that they will. If the method breaks the encapsulation of its class, then its internal * representation will be hard to change. Instead, use <a * href="http://errorprone.info/bugpattern/RestrictedApi">RestrictedApiChecker</a>, which enforces * fine-grained visibility policies. * * @author Johannes Henkel */ @GwtCompatible public @interface VisibleForTesting {
Registered: 2025-05-30 12:43 - Last Modified: 2023-01-30 22:25 - 1.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
} private static class From<K> { class To<V> { Type type() { return new TypeToken<To<V>>(getClass()) {}.getType(); } } } @SuppressWarnings("RestrictedApiChecker") // crashes under JDK8, which EP no longer supports public <T> void testRejectTypeVariable_withOwnerType() { // Neither has subclass assertHasTypeVariable(new From<Integer>().new To<String>().type());
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-14 19:40 - 89.2K bytes - Viewed (0)