- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 53 for NoSuchMethodException (0.24 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/collect/ForwardingMapTest.java
try { Method method = IntFunction.class.getMethod("apply", int.class); return (IntFunction<Object>) v -> getDefaultValue(type.method(method).getReturnType()); } catch (NoSuchMethodException e) { throw newLinkageError(e); } } else if (rawType.equals(Consumer.class)) { return (Consumer<Object>) v -> {}; } else { return null; } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 12.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/validation/CustomSizeTest.java
assertNotNull(maxKeyMethod, "maxKey() method should exist"); assertEquals("maxKey() return type should be String", String.class, maxKeyMethod.getReturnType()); } catch (final NoSuchMethodException e) { fail("Required annotation method not found: " + e.getMessage()); } } // Test creating custom implementation of annotation @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 17.4K bytes - Click Count (0) -
android/guava/src/com/google/common/io/FileBackedOutputStream.java
Method method = Reference.class.getMethod("reachabilityFence", Object.class); method.invoke(null, FileBackedOutputStream.class); // to make sure the method is accessible return true; } catch (NoSuchMethodException | IllegalAccessException probablyBeforeJava9OrAndroid28) { /* * It's theoretically possible for Reference.reachabilityFence to exist under older VMs in an * inaccessible form. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 17:30:49 GMT 2026 - 12.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
Invokable<Prepender, Object> invokable = (Invokable<Prepender, Object>) Invokable.from(method); return invokable; } catch (NoSuchMethodException e) { throw new IllegalArgumentException(e); } } private void privateMethod() {} private final void privateFinalMethod() {} static void staticMethod() {}
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 31.1K bytes - Click Count (0) -
android/guava/src/com/google/common/base/FinalizableReferenceQueue.java
static Method getStartFinalizer(Class<?> finalizer) { try { return finalizer.getMethod( "startFinalizer", Class.class, ReferenceQueue.class, PhantomReference.class); } catch (NoSuchMethodException e) { throw new AssertionError(e); } } private static boolean isAndroid() { return requireNonNull(System.getProperty("java.runtime.name", "")).contains("Android"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 19:26:59 GMT 2026 - 15.8K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
return arbitraryConstantInstanceOrNull(type); } Constructor<T> constructor; try { constructor = type.getConstructor(); } catch (NoSuchMethodException e) { return arbitraryConstantInstanceOrNull(type); } constructor.setAccessible(true); // accessibility check is too slow try { return constructor.newInstance();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 20.9K bytes - Click Count (0) -
guava/src/com/google/common/base/FinalizableReferenceQueue.java
static Method getStartFinalizer(Class<?> finalizer) { try { return finalizer.getMethod( "startFinalizer", Class.class, ReferenceQueue.class, PhantomReference.class); } catch (NoSuchMethodException e) { throw new AssertionError(e); } } private static boolean isAndroid() { return requireNonNull(System.getProperty("java.runtime.name", "")).contains("Android"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 19:26:59 GMT 2026 - 15.8K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 24.9K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/MoreExecutors.java
Class.forName("com.google.appengine.api.ThreadManager") .getMethod("currentRequestThreadFactory") .invoke(null); } catch (IllegalAccessException | ClassNotFoundException | NoSuchMethodException e) { throw new RuntimeException("Couldn't invoke ThreadManager.currentRequestThreadFactory", e); } catch (InvocationTargetException e) { // `currentRequestThreadFactory` has no `throws` clause.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 45.6K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 29.9K bytes - Click Count (0)