Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 171 for newInstance (0.14 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java

            // Force accessibility and create instance to achieve coverage
            constructor.setAccessible(true);
            assertNotNull(constructor.newInstance(), "Should be able to create instance via reflection");
        }
    
        @Nested
        @DisplayName("Header Constants")
        class HeaderConstants {
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

            LocalRepository localRepo = new LocalRepository(localRepository().getBasedir());
            session.setLocalRepositoryManager(new SimpleLocalRepositoryManagerFactory().newInstance(session, localRepo));
            return session;
        }
    
        private static final char[] HEX_CODE = "0123456789ABCDEF".toCharArray();
    
        private static String printHexBinary(byte[] data) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 10 09:40:15 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  3. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/shared-configuration.kt

        if (executer == "embedded") {
            // Apply the instrumentation agent to the test process when running integration tests with embedded Gradle executer.
            jvmArgumentProviders.add(project.objects.newInstance<AgentsClasspathProvider>().apply {
                agentsClasspath.from(project.configurations["${testType.prefix}TestAgentsClasspath"])
            })
        }
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Mon Aug 18 16:39:23 UTC 2025
    - 12.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: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  5. 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: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 12K bytes
    - Viewed (0)
  6. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/SitemapsHelper.java

         */
        protected SitemapSet parseXmlSitemaps(final InputStream in) {
            final XmlSitemapsHandler handler = new XmlSitemapsHandler();
            try {
                final SAXParserFactory spfactory = SAXParserFactory.newInstance();
                spfactory.setNamespaceAware(true); // Enable namespace awareness
                spfactory.setFeature(Constants.FEATURE_SECURE_PROCESSING, true);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 14 13:19:40 UTC 2025
    - 34.9K bytes
    - Viewed (0)
  8. 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: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/curl/CurlTest.java

            // ## Act ##
            final Constructor<Curl> constructor = Curl.class.getDeclaredConstructor();
            constructor.setAccessible(true);
            final Curl instance = constructor.newInstance();
    
            // ## Assert ##
            assertNotNull(instance);
        }
    
        @Test
        public void test_TraceMethodInEnum() {
            // ## Test that TRACE method exists in the Method enum ##
    
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  10. 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: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top