- Sort Score
- Result 10 results
- Languages All
Results 21 - 29 of 29 for getDeclaredField (0.57 sec)
-
guava/src/com/google/common/util/concurrent/AggregateFutureState.java
} catch (Throwable reflectionFailure) { // sneaky checked exception // Some Android 5.0.x Samsung devices have bugs in JDK reflection APIs that cause // getDeclaredField to throw a NoSuchFieldException when the field is definitely there. // For these users fallback to a suboptimal implementation, based on synchronized. This will // be a definite performance hit to those users.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 28 20:40:51 UTC 2024 - 8.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/IvyModuleDescriptorConverter.java
private static final String CLASSIFIER = "classifier"; private static final Field DEPENDENCY_CONFIG_FIELD; static { try { DEPENDENCY_CONFIG_FIELD = DefaultDependencyDescriptor.class.getDeclaredField("confs"); DEPENDENCY_CONFIG_FIELD.setAccessible(true); } catch (NoSuchFieldException e) { throw UncheckedException.throwAsUncheckedException(e); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 8.7K bytes - Viewed (0) -
platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/internal/PmdInvoker.groovy
} catch (ClassNotFoundException e) { pmdVersion = antLoader.loadClass("net.sourceforge.pmd.PMD") } Field versionField = pmdVersion.getDeclaredField("VERSION") return VersionNumber.parse(Cast.castNullable(String.class, versionField.get(null))) } private static void assertUnsupportedIncrementalAnalysis(VersionNumber version) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 21 12:23:38 UTC 2023 - 7.7K bytes - Viewed (0) -
src/test/java/org/codelibs/opensearch/extension/analysis/ReloadableKuromojiTokenizerFactory.java
private static Field getAccessibleField(final Class<?> clazz, final String name) { return AccessController.doPrivileged((PrivilegedAction<Field>) () -> { try { final Field field = clazz.getDeclaredField(name); field.setAccessible(true); return field; } catch (final Exception e) { throw new IllegalArgumentException("Failed to load fields.", e);
Registered: Wed Jun 12 15:38:08 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 9.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java
} catch (Throwable reflectionFailure) { // sneaky checked exception // Some Android 5.0.x Samsung devices have bugs in JDK reflection APIs that cause // getDeclaredField to throw a NoSuchFieldException when the field is definitely there. // For these users fallback to a suboptimal implementation, based on synchronized. This will // be a definite performance hit to those users.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 28 20:40:51 UTC 2024 - 8.4K bytes - Viewed (0) -
guava/src/com/google/common/base/internal/Finalizer.java
throw new AssertionError(e); } } @CheckForNull private static Field getInheritableThreadLocalsField() { try { Field inheritableThreadLocals = Thread.class.getDeclaredField("inheritableThreadLocals"); inheritableThreadLocals.setAccessible(true); return inheritableThreadLocals; } catch (Throwable t) { logger.log( Level.INFO,
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Aug 23 12:54:09 UTC 2023 - 9.4K bytes - Viewed (0) -
android/guava/src/com/google/common/base/internal/Finalizer.java
throw new AssertionError(e); } } @CheckForNull private static Field getInheritableThreadLocalsField() { try { Field inheritableThreadLocals = Thread.class.getDeclaredField("inheritableThreadLocals"); inheritableThreadLocals.setAccessible(true); return inheritableThreadLocals; } catch (Throwable t) { logger.log( Level.INFO,
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Aug 23 12:54:09 UTC 2023 - 9.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Serialization.java
} } } // Secret sauce for setting final fields; don't make it public. static <T> FieldSetter<T> getFieldSetter(Class<T> clazz, String fieldName) { try { Field field = clazz.getDeclaredField(fieldName); return new FieldSetter<>(field); } catch (NoSuchFieldException e) { throw new AssertionError(e); // programmer error } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 06 16:06:58 UTC 2023 - 8.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Serialization.java
} } } // Secret sauce for setting final fields; don't make it public. static <T> FieldSetter<T> getFieldSetter(Class<T> clazz, String fieldName) { try { Field field = clazz.getDeclaredField(fieldName); return new FieldSetter<>(field); } catch (NoSuchFieldException e) { throw new AssertionError(e); // programmer error } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 06 16:06:58 UTC 2023 - 8.5K bytes - Viewed (0)