Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 167 for newInstance (0.07 seconds)

  1. src/main/java/org/codelibs/core/collection/SLinkedList.java

         * @return the array
         */
        @SuppressWarnings("unchecked")
        public E[] toArray(E[] array) {
            if (array.length < size) {
                array = (E[]) Array.newInstance(array.getClass().getComponentType(), size);
            }
            int i = 0;
            for (Entry e = header.next; e != header; e = e.next) {
                array[i++] = e.element;
            }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/lang/GenericsUtil.java

            case WildcardType wildcard -> getRawClass(wildcard.getUpperBounds()[0]);
            case GenericArrayType arrayType -> {
                Class<?> rawClass = getRawClass(arrayType.getGenericComponentType());
                yield Array.newInstance(rawClass, 0).getClass();
            }
            case null, default -> null;
            };
        }
    
        /**
         * Returns the array of type arguments for the specified type.
         * <p>
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 23.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

                // Test that constructor is accessible when made accessible
                constructor.setAccessible(true);
                ThreadDumpUtil instance = constructor.newInstance();
                assertNotNull(instance);
    
            } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

            }
            return arg;
        }
    
        private Object convertWithString(final Object arg) {
            if (stringConstructor != null) {
                return ConstructorUtil.newInstance(stringConstructor, arg);
            }
            if (valueOfMethod != null) {
                return MethodUtil.invoke(valueOfMethod, null, arg);
            }
            return arg;
        }
    
        @Override
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 24 01:52:43 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                Class<?> cls = Class.forName("jcifs.smb.SmbEnumerationUtil$" + simpleName);
                Constructor<?> ctor = cls.getDeclaredConstructor(paramTypes);
                ctor.setAccessible(true);
                return ctor.newInstance(args);
            } catch (ClassNotFoundException | NoSuchMethodException | InstantiationException | IllegalAccessException
                    | InvocationTargetException e) {
                throw new AssertionError(e);
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  6. README.md

    ### Exception Handling
    ```java
    import org.codelibs.core.exception.*;
    
    // Runtime exception wrappers eliminate try-catch boilerplate
    try {
        // Code that might throw checked exceptions
        return ClassUtil.newInstance(className); // Wraps checked exceptions automatically
    } catch (ClassNotFoundRuntimeException e) {
        // Handle the wrapped exception
        logger.error("Class not found: " + className, e);
    }
    ```
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sun Aug 31 02:56:02 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/reflect/Invokable.java

        }
    
        @Override
        final Object invokeInternal(@Nullable Object receiver, @Nullable Object[] args)
            throws InvocationTargetException, IllegalAccessException {
          try {
            return constructor.newInstance(args);
          } catch (InstantiationException e) {
            throw new RuntimeException(constructor + " failed.", e);
          }
        }
    
        /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 18.5K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/util/WebApiUtilTest.java

                // Test that constructor is accessible when made accessible
                constructor.setAccessible(true);
                WebApiUtil instance = constructor.newInstance();
                assertNotNull(instance);
    
            } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/util/GsaConfigParser.java

         * @throws GsaConfigException if parsing fails due to XML format issues or other errors
         */
        public void parse(final InputSource is) {
            try {
                final SAXParserFactory factory = SAXParserFactory.newInstance();
                factory.setFeature(org.codelibs.fess.crawler.Constants.FEATURE_SECURE_PROCESSING, true);
                factory.setFeature(org.codelibs.fess.crawler.Constants.FEATURE_EXTERNAL_GENERAL_ENTITIES, false);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 21.6K bytes
    - Click Count (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/Project.java

         *
         * @return the build element of the project model
         */
        @Nonnull
        default Build getBuild() {
            Build build = getModel().getBuild();
            return build != null ? build : Build.newInstance();
        }
    
        /**
         * Returns the path to the pom file for this project.
         * A project is usually read from a file named {@code pom.xml},
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Nov 07 13:11:07 GMT 2025
    - 15.3K bytes
    - Click Count (0)
Back to Top