- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 66 for newInstance (0.1 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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) -
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) -
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 configurationCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 15.6K bytes - Click Count (0) -
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) -
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) -
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) -
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) -
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) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 10 09:40:15 GMT 2025 - 13.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/SearchEngineUtilTest.java
@Test public void test_utility_class_instantiation() { // Verify that SearchEngineUtil is a utility class with private constructor try { SearchEngineUtil.class.getDeclaredConstructor().newInstance(); fail("Should not be able to instantiate utility class"); } catch (Exception e) { // Expected - utility classes should have private constructorsCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 13.8K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java
return unmodifiableCollection(fieldDescCache.values()); } @Override public <T> T newInstance(final Object... args) { final ConstructorDesc constructorDesc = getSuitableConstructorDesc(args); return constructorDesc.newInstance(args); } @Override public ConstructorDesc getConstructorDesc(final Class<?>... paramTypes) {
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 25.8K bytes - Click Count (1)