Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for RestrictedApiChecker (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top