- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 194 for setMethod (0.05 seconds)
-
build-tools-internal/src/main/resources/forbidden/jdk-signatures.txt
java.lang.Class#getDeclaredFields() @ Do not violate java's access system: Use getFields() instead java.lang.Class#getDeclaredMethod(java.lang.String, java.lang.Class[]) @ Do not violate java's access system: Use getMethod() instead java.lang.Class#getDeclaredMethods() @ Do not violate java's access system: Use getMethods() instead java.lang.reflect.AccessibleObject#setAccessible(boolean)
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 4.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/PreconditionsTest.java
@J2ktIncompatible public void testAllOverloads_checkArgument() throws Exception { for (ImmutableList<Class<?>> sig : allSignatures(boolean.class)) { Method checkArgumentMethod = Preconditions.class.getMethod("checkArgument", sig.toArray(new Class<?>[] {})); checkArgumentMethod.invoke(null /* static method */, getParametersForSignature(true, sig)); Object[] failingParams = getParametersForSignature(false, sig);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 19.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/PreconditionsTest.java
@J2ktIncompatible public void testAllOverloads_checkArgument() throws Exception { for (ImmutableList<Class<?>> sig : allSignatures(boolean.class)) { Method checkArgumentMethod = Preconditions.class.getMethod("checkArgument", sig.toArray(new Class<?>[] {})); checkArgumentMethod.invoke(null /* static method */, getParametersForSignature(true, sig)); Object[] failingParams = getParametersForSignature(false, sig);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 19.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
super("two"); // from TestStringSortedMapGenerator's sample keys } } @J2ktIncompatible @GwtIncompatible // reflection public static Method getMethod(Class<?> clazz, String name) { try { return clazz.getMethod(name); } catch (Exception e) { throw new IllegalArgumentException(e); } } /** * Useless constructor for a class of static utility methods.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 17.2K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java
// if this class is public, then try to get it if ((clazz.getModifiers() & Modifier.PUBLIC) != 0) { try { return clazz.getMethod(name, paramTypes); } catch (NoSuchMethodException e) { // If the class does not have the method, then neither its superclass // nor any of its interfaces has it so quickly return null.Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 13.5K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java
.isNotNull(); for (String propertyName : new String[] {"value", "absent"}) { Method method = null; try { method = annotationClass.getMethod(propertyName); } catch (NoSuchMethodException e) { throw new AssertionError("Annotation is missing required method", e); } Class<?> returnType = method.getReturnType(); assertTrue(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 00:25:21 GMT 2025 - 4.5K bytes - Click Count (0) -
container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt
} @AfterEach fun checkForPinning() { assertThat(capturedOut.toString()).isEmpty() } private fun newVirtualThreadPerTaskExecutor(): ExecutorService = Executors::class.java.getMethod("newVirtualThreadPerTaskExecutor").invoke(null) as ExecutorService @Test fun testHttpsRequest() { MockServerClient(mockServer.host, mockServer.serverPort).use { mockServerClient -> mockServerClient
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.7K bytes - Click Count (1) -
src/test/java/org/codelibs/fess/opensearch/client/CrawlerEngineClientTest.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 5K bytes - Click Count (0) -
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
} /** * @throws Exception */ @Test(expected = EmptyArgumentException.class) public void testGetMethod_EmptyName() throws Exception { ClassUtil.getMethod(getClass(), ""); } /** * */ @Test public void testGetPrimitiveClass() { assertThat(ClassUtil.getPrimitiveClass(Integer.class), is(sameClass(int.class)));Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 6.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
assertThat(sepLoader).isSameInstanceAs(sepStopwatchC.getClassLoader()); AtomicReference<Object> sepStopwatchA = new AtomicReference<Object>(sepStopwatchC.getMethod("createUnstarted").invoke(null)); AtomicReference<WeakReference<?>> sepStopwatchRef = new AtomicReference<WeakReference<?>>( (WeakReference<?>) sepFwrCons.newInstance(sepStopwatchA.get(), sepFrqA.get()));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 26 02:41:17 GMT 2026 - 7.7K bytes - Click Count (0)