- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 23 for getConstructors (0.19 seconds)
-
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
} /** * */ @Test(expected = NoSuchConstructorRuntimeException.class) public void testGetConstructor() { ClassUtil.getConstructor(ClassUtilTest.class, Integer.class); } /** * */ @Test(expected = NoSuchFieldRuntimeException.class) public void testGetField() {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) -
src/main/java/org/codelibs/core/lang/ClassUtil.java
* If a matching constructor is not found * @see Class#getConstructor(Class...) */ public static <T> Constructor<T> getConstructor(final Class<T> clazz, final Class<?>... argTypes) throws NoSuchConstructorRuntimeException { assertArgumentNotNull("clazz", clazz); try { return clazz.getConstructor(argTypes); } catch (final NoSuchMethodException e) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 25.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
Constructor<String> constructor = String.class.getConstructor(); assertThrows( IllegalArgumentException.class, () -> TypeToken.of(Object.class).constructor(constructor)); } public void testConstructor_declaredBySuperclass() throws NoSuchMethodException { Constructor<Object> constructor = Object.class.getConstructor(); assertThrows(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/timer/SystemMonitorTargetTest.java
@Test public void test_default_constructor_is_public() throws Exception { assertTrue("Default constructor should be public", java.lang.reflect.Modifier.isPublic(SystemMonitorTarget.class.getConstructor().getModifiers())); } @Test public void test_expired_method_is_public() throws Exception { assertTrue("expired method should be public",Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
new AtomicReference<Object>(sepFrqC.getDeclaredConstructor().newInstance()); Class<?> sepFwrC = sepLoader.loadClass(MyFinalizableWeakReference.class.getName()); Constructor<?> sepFwrCons = sepFwrC.getConstructor(Object.class, sepFrqC); // The object that we will wrap in FinalizableWeakReference is a Stopwatch. Class<?> sepStopwatchC = sepLoader.loadClass(Stopwatch.class.getName());
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) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
Constructor<String> constructor = String.class.getConstructor(); assertThrows( IllegalArgumentException.class, () -> TypeToken.of(Object.class).constructor(constructor)); } public void testConstructor_declaredBySuperclass() throws NoSuchMethodException { Constructor<Object> constructor = Object.class.getConstructor(); assertThrows(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0) -
android/guava/src/com/google/common/base/internal/Finalizer.java
+ "inherit thread local values."); return null; } } private static @Nullable Constructor<Thread> getBigThreadConstructor() { try { return Thread.class.getConstructor( ThreadGroup.class, Runnable.class, String.class, long.class, boolean.class); } catch (Throwable t) { // Probably pre Java 9. We'll fall back to Thread.inheritableThreadLocals. return null;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 03:19:29 GMT 2026 - 9.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
new AtomicReference<Object>(sepFrqC.getDeclaredConstructor().newInstance()); Class<?> sepFwrC = sepLoader.loadClass(MyFinalizableWeakReference.class.getName()); Constructor<?> sepFwrCons = sepFwrC.getConstructor(Object.class, sepFrqC); // The object that we will wrap in FinalizableWeakReference is a Stopwatch. Class<?> sepStopwatchC = sepLoader.loadClass(Stopwatch.class.getName());
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) -
guava/src/com/google/common/base/internal/Finalizer.java
+ "inherit thread local values."); return null; } } private static @Nullable Constructor<Thread> getBigThreadConstructor() { try { return Thread.class.getConstructor( ThreadGroup.class, Runnable.class, String.class, long.class, boolean.class); } catch (Throwable t) { // Probably pre Java 9. We'll fall back to Thread.inheritableThreadLocals. return null;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 03:19:29 GMT 2026 - 9.6K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java
* @return Instance of given implementation, constructed using the given string */ private static <T> T newImplementation(final Class<T> clazz, final String value) { try { return clazz.getConstructor(String.class).newInstance(value); } catch (final Exception e) { final Throwable cause = e instanceof InvocationTargetException ? e.getCause() : e;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 15.3K bytes - Click Count (0)