Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 89K bytes
    - Viewed (0)
  2. 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());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.6K 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. 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;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  5. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  6. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertTrue(delegate.isVarArgs());
      }
    
      public void testGetOwnerType_constructor() throws Exception {
        Invokable<String, String> invokable = Invokable.from(String.class.getConstructor());
        assertEquals(TypeToken.of(String.class), invokable.getOwnerType());
      }
    
      public void testGetOwnerType_method() throws Exception {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 30.7K bytes
    - Viewed (0)
  8. impl/maven-core/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar

    public Object getField(Object, String) throws ReflectorException; public Object getField(Object, String, boolean) throws ReflectorException; public Object invokeStatic(Class, String, Object[]) throws ReflectorException; public reflect.Constructor getConstructor(Class, Class[]) throws ReflectorException; public Object getObjectProperty(Object, String) throws ReflectorException; public reflect.Method getMethod(Class, String, Class[]) throws ReflectorException; private reflect.Method _getMethod(Class, String,...
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 164.6K bytes
    - Viewed (0)
Back to top