Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for LocalClass (0.04 sec)

  1. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        assertEquals(null, ourType.getOwnerType());
      }
    
      public void testNewParameterizedType_nonStaticLocalClass() {
        class LocalClass<T> {}
        Type jvmType = new LocalClass<String>() {}.getClass().getGenericSuperclass();
        Type ourType = Types.newParameterizedType(LocalClass.class, String.class);
        assertEquals(jvmType, ourType);
      }
    
      public void testNewParameterizedType_staticLocalClass() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypesTest.java

        assertEquals(null, ourType.getOwnerType());
      }
    
      public void testNewParameterizedType_nonStaticLocalClass() {
        class LocalClass<T> {}
        Type jvmType = new LocalClass<String>() {}.getClass().getGenericSuperclass();
        Type ourType = Types.newParameterizedType(LocalClass.class, String.class);
        assertEquals(jvmType, ourType);
      }
    
      public void testNewParameterizedType_staticLocalClass() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/Types.java

        abstract Class<?> getOwnerType(Class<?> rawType);
    
        static final ClassOwnership JVM_BEHAVIOR = detectJvmBehavior();
    
        private static ClassOwnership detectJvmBehavior() {
          class LocalClass<T> {}
          Class<?> subclass = new LocalClass<String>() {}.getClass();
          // requireNonNull is safe because we're examining a type that's known to have a superclass.
          ParameterizedType parameterizedType =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top