- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for getDeclaredField (1.1 sec)
-
impl/maven-core/src/test/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelperTest.java
when(evaluator.evaluate("fieldValue")).thenReturn("fieldValue"); // Get the field to check its accessibility state java.lang.reflect.Field field = TestBean.class.getDeclaredField("directField"); // Verify field is not accessible initially boolean initialAccessibility = field.canAccess(bean); // Set the property using the helperRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Nov 12 14:59:46 UTC 2025 - 8.7K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTaskWithKotlin.java
} // it's easier to do this via reflection than to copy the whole task private void addKotlinCompilerToJapicmpClasspath() { try { Field additionalJapicmpClasspathField = JapicmpTask.class.getDeclaredField("additionalJapicmpClasspath"); additionalJapicmpClasspathField.setAccessible(true);Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Dec 24 14:15:15 UTC 2025 - 2.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/gcs/HandlerTest.java
private Object getField(Object obj, String fieldName) throws Exception { Class<?> clazz = obj.getClass(); while (clazz != null) { try { java.lang.reflect.Field field = clazz.getDeclaredField(fieldName); field.setAccessible(true); return field.get(obj); } catch (NoSuchFieldException e) { // Try parent class
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterRefactoringTest.java
* Verifies that the constant is properly defined with expected value. */ @Test public void testExpectedIndexCountConstant() throws Exception { final Field field = Suggester.class.getDeclaredField("EXPECTED_INDEX_COUNT"); field.setAccessible(true); final int value = (int) field.get(null); assertEquals("EXPECTED_INDEX_COUNT should be 1", 1, value); } /**Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 24 03:40:05 UTC 2025 - 13.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ProtocolHelper.java
try { final Class<Object> handlerClazz = ClassUtil.forName(basePackage + "." + protocol + ".Handler"); final Field protocolTypeField = ClassUtil.getDeclaredField(handlerClazz, "PROTOCOL_TYPE"); if (protocolTypeField.get(null) instanceof final String protocolType) { if ("web".equalsIgnoreCase(protocolType)) {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Dec 12 13:58:40 UTC 2025 - 12.4K bytes - Viewed (1) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/storage/HandlerTest.java
private Object getField(Object obj, String fieldName) throws Exception { Class<?> clazz = obj.getClass(); while (clazz != null) { try { java.lang.reflect.Field field = clazz.getDeclaredField(fieldName); field.setAccessible(true); return field.get(obj); } catch (NoSuchFieldException e) { // Try parent class
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Dec 09 16:35:21 UTC 2025 - 46.4K bytes - Viewed (0) -
android/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: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 62.7K bytes - Viewed (0) -
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: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 65K bytes - Viewed (0)