Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 124 for newInstance (0.04 sec)

  1. src/test/java/org/codelibs/fess/util/SystemUtilTest.java

                // Test that constructor is accessible when made accessible
                constructor.setAccessible(true);
                SystemUtil instance = constructor.newInstance();
                assertNotNull(instance);
    
            } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/opensearch/user/bsbhv/BsUserBhv.java

        }
    
        @Override
        protected <RESULT extends User> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) {
            try {
                final RESULT result = entityType.newInstance();
                result.setBusinessCategory(DfTypeUtil.toString(source.get("businessCategory")));
                result.setCarLicense(DfTypeUtil.toString(source.get("carLicense")));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

            params[i] = cause.toString();
          } else if (paramType.equals(Throwable.class)) {
            params[i] = cause;
          } else {
            return null;
          }
        }
        try {
          return constructor.newInstance(params);
        } catch (IllegalArgumentException
            | InstantiationException
            | IllegalAccessException
            | InvocationTargetException e) {
          return null;
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testSetArrayValue() throws Exception {
            final Object o = Array.newInstance(int.class, 3);
            Array.set(o, 0, Integer.valueOf(1));
            Array.set(o, 1, Integer.valueOf(2));
            Array.set(o, 2, Integer.valueOf(3));
            final int[] num = (int[]) o;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

            params[i] = cause.toString();
          } else if (paramType.equals(Throwable.class)) {
            params[i] = cause;
          } else {
            return null;
          }
        }
        try {
          return constructor.newInstance(params);
        } catch (IllegalArgumentException
            | InstantiationException
            | IllegalAccessException
            | InvocationTargetException e) {
          return null;
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  6. 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) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  7. 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
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. 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);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  9. 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>
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  10. 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;
            }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 10.5K bytes
    - Viewed (0)
Back to top