Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for getConstructors (0.08 sec)

  1. src/test/java/org/codelibs/fess/timer/SystemMonitorTargetTest.java

        }
    
        public void test_default_constructor_is_public() throws Exception {
            assertTrue("Default constructor should be public",
                    java.lang.reflect.Modifier.isPublic(SystemMonitorTarget.class.getConstructor().getModifiers()));
        }
    
        public void test_expired_method_is_public() throws Exception {
            assertTrue("expired method should be public",
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. 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() {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  3. 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;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. 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) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  5. 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(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  6. 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(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  7. 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 {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  8. 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 {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 21.4K bytes
    - Viewed (0)
Back to top