Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 62 of 62 for getDeclaredField (0.23 sec)

  1. guava-tests/test/com/google/common/collect/MapsTest.java

            .isAtMost(bucketsOf(referenceMap));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      private static int bucketsOf(HashMap<?, ?> hashMap) throws Exception {
        Field tableField = HashMap.class.getDeclaredField("table");
        tableField.setAccessible(true);
        Object[] table = (Object[]) tableField.get(hashMap);
        // In JDK8, table is set lazily, so it may be null.
        return table == null ? 0 : table.length;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AsmBackedClassGenerator.java

                }
            }
    
            private static void attachFactoryIdToImplType(Class<?> implClass, int id) {
                try {
                    Field factoryField = implClass.getDeclaredField(FACTORY_ID_FIELD);
                    factoryField.setAccessible(true);
                    factoryField.set(null, id);
                } catch (Exception e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:40:00 UTC 2024
    - 100.6K bytes
    - Viewed (0)
Back to top