Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 81 for newInstance (0.06 seconds)

  1. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            SmbRandomAccessFile raf = newInstance("r", false, false, false);
            byte[] buf = new byte[4];
            assertEquals(0, raf.read(buf, 0, 0));
        }
    
        @Test
        @DisplayName("read(): returns -1 when underlying read reports EOF")
        void read_returnsMinusOne_onEOF() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("r", false, false, false));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/lang/ClassUtil.java

         *             or if the constructor is related to an enum type
         * @see Constructor#newInstance(Object[])
         */
        public static <T> T newInstance(final Class<T> clazz) throws InstantiationRuntimeException, IllegalAccessRuntimeException {
            assertArgumentNotNull("clazz", clazz);
    
            try {
                return clazz.newInstance();
            } catch (final InstantiationException e) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  3. api/maven-api-xml/src/main/java/org/apache/maven/api/xml/XmlNode.java

     *
     * <p>Example usage:</p>
     * <pre>
     * XmlNode node = XmlNode.newBuilder()
     *     .name("configuration")
     *     .attribute("version", "1.0")
     *     .child(XmlNode.newInstance("property", "value"))
     *     .build();
     * </pre>
     *
     * @since 4.0.0
     */
    @Experimental
    @ThreadSafe
    @Immutable
    public interface XmlNode {
    
        /**
         * @deprecated since 4.0.0.
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Dec 17 15:20:44 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/io/BaseEncoding.java

        public BaseEncoding omitPadding() {
          return (paddingChar == null) ? this : newInstance(alphabet, null);
        }
    
        @Override
        public BaseEncoding withPadChar(char padChar) {
          if (8 % alphabet.bitsPerChar == 0 || (paddingChar != null && paddingChar == padChar)) {
            return this;
          } else {
            return newInstance(alphabet, padChar);
          }
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 41.6K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/mylasta/direction/FessEnvTest.java

            // Test that the SimpleImpl class can be instantiated
            FessEnv.SimpleImpl newInstance = new FessEnv.SimpleImpl();
            assertNotNull(newInstance);
    
            // Verify default values work for new instance
            assertEquals("warm", newInstance.getLastaDiSmartDeployMode());
        }
    
        // Test edge cases for mail configuration
    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)
  6. src/test/java/org/codelibs/fess/entity/DataStoreParamsTest.java

            assertEquals("existingValue", dataStoreParams.get("existingKey"));
        }
    
        // Test newInstance
        @Test
        public void test_newInstance() {
            dataStoreParams.put("key1", "value1");
            dataStoreParams.put("key2", 123);
    
            DataStoreParams newParams = dataStoreParams.newInstance();
    
            assertNotNull(newParams);
            assertNotSame(dataStoreParams, newParams);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

            LocalRepository localRepo =
                    new LocalRepository(request.getLocalRepository().getBasedir());
            session.setLocalRepositoryManager(new SimpleLocalRepositoryManagerFactory().newInstance(session, localRepo));
            LegacySupport legacySupport = container.lookup(LegacySupport.class);
            DefaultMavenExecutionRequest mavenExecutionRequest = new DefaultMavenExecutionRequest();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  8. compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

            // convert to a collection first then convert that into an array
            final Collection<?> collection = parseCollection(parser, toType);
            final Object array = Array.newInstance(toType.getRawType(), collection.size());
    
            int i = 0;
            for (final Object element : collection) {
                Array.set(array, i++, element);
            }
    
            return array;
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

            try {
                final CachedScript cached = getOrCompile(template);
                final Script script = cached.scriptClass.getDeclaredConstructor().newInstance();
                script.setBinding(new Binding(bindingMap));
    
                if (logger.isDebugEnabled()) {
                    logger.debug("Evaluating Groovy script: template={}", template);
                }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilderFactory.java

        }
    
        /**
         * Creates a new model builder instance.
         *
         * @return The new model builder instance, never {@code null}.
         */
        public DefaultModelBuilder newInstance() {
            DefaultModelBuilder modelBuilder = new DefaultModelBuilder();
    
            modelBuilder.setModelProcessor(newModelProcessor());
            modelBuilder.setModelValidator(newModelValidator());
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 10.2K bytes
    - Click Count (0)
Back to Top