- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 86 for newInstance (0.07 seconds)
-
src/main/java/org/codelibs/core/xml/DocumentBuilderFactoryUtil.java
*/ public static DocumentBuilderFactory newInstance() { return newInstance(false); } /** * Returns a new instance of {@link DocumentBuilderFactory}. * * @param external * If {@code true}, external access is allowed. * @return A new instance of {@link DocumentBuilderFactory}. */ public static DocumentBuilderFactory newInstance(final boolean external) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 2.9K bytes - Click Count (0) -
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) -
src/main/java/org/codelibs/core/lang/ConstructorUtil.java
* @see Constructor#newInstance(Object[]) */ public static <T> T newInstance(final Constructor<T> constructor, final Object... args) throws InstantiationRuntimeException, IllegalAccessRuntimeException { assertArgumentNotNull("constructor", constructor); try { return constructor.newInstance(args); } catch (final InstantiationException e) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 3.1K bytes - Click Count (0) -
src/main/java/org/codelibs/core/xml/SAXParserFactoryUtil.java
/** * Creates a new instance of {@link SAXParserFactory}. * * @return A new instance of {@link SAXParserFactory}. */ public static SAXParserFactory newInstance() { final SAXParserFactory factory = SAXParserFactory.newInstance(); try { factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true); factory.setFeature("http://xml.org/sax/features/external-general-entities", false);Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 3.7K bytes - Click Count (0) -
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) -
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) -
src/test/java/jcifs/spnego/SpnegoConstantsTest.java
} @Test @DisplayName("Interface cannot be instantiated") @SuppressWarnings("deprecation") // Using Class#newInstance for explicit InstantiationException void cannotInstantiateInterface() { assertThrows(InstantiationException.class, () -> SpnegoConstants.class.newInstance(), "Interfaces cannot be instantiated"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.7K 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)