- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 120 for newInstance (0.45 sec)
-
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) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 2.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/ArrayUtil.java
assertArgumentNotNull("array", array); final int length = array.length; @SuppressWarnings("unchecked") final T[] newArray = (T[]) Array.newInstance(array.getClass().getComponentType(), length + 1); System.arraycopy(array, 0, newArray, 0, length); newArray[length] = obj; return newArray; } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 41.5K bytes - Viewed (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));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/ProblemCollectorFactoryTest.java
class ProblemCollectorFactoryTest { @Test void testNewInstance() { ProblemCollector collector1 = ProblemCollectorFactory.newInstance(null); Problem problem = new DefaultProblem("MESSAGE1", null, null, -1, -1, null); ProblemCollector collector2 = ProblemCollectorFactory.newInstance(Collections.singletonList(problem)); assertNotSame(collector1, collector2); assertEquals(0, collector1.getProblems().size());
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Sun Jul 20 20:19:43 UTC 2025 - 2.3K bytes - Viewed (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) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java
Constructor<SmbComNtCancel> constructor = SmbComNtCancel.class.getDeclaredConstructor(Configuration.class, int.class); constructor.setAccessible(true); SmbComNtCancel cancel = constructor.newInstance(mockConfig, testMid); // Then assertNotNull(cancel); assertEquals(testMid, cancel.getMid()); // Verify command is set correctly
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java
assertNotNull(exception1); assertEquals(message1, exception1.getMessage()); assertNull(exception1.getCause()); // Test with suppression disabled and writable stack trace String message2 = "Test with suppression disabled"; CrawlerSystemException exception2 = constructor.newInstance(message2, false, true);
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 20K bytes - Viewed (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);
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java
assertThat(ctor.getParameterTypes().length, is(0)); assertThat(ctor.isPublic(), is(true)); final MyBean myBean = ctor.newInstance(); assertThat(myBean, is(notNullValue())); assertThat(myBean.s, is(nullValue())); } /** * @throws Exception */ @SuppressWarnings("rawtypes") @Test
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.9K bytes - Viewed (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"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.7K bytes - Viewed (0)