- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 124 for newInstance (0.06 sec)
-
README.md
### Exception Handling ```java import org.codelibs.core.exception.*; // Runtime exception wrappers eliminate try-catch boilerplate try { // Code that might throw checked exceptions return ClassUtil.newInstance(className); // Wraps checked exceptions automatically } catch (ClassNotFoundRuntimeException e) { // Handle the wrapped exception logger.error("Class not found: " + className, e); } ```
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sun Aug 31 02:56:02 UTC 2025 - 12.7K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/Project.java
* * @return the build element of the project model */ @Nonnull default Build getBuild() { Build build = getModel().getBuild(); return build != null ? build : Build.newInstance(); } /** * Returns the path to the pom file for this project. * A project is usually read from a file named {@code pom.xml},
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Feb 27 11:07:03 UTC 2025 - 10.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt
* percent-encoded in a path. * * See https://url.spec.whatwg.org/#percent-encoded-bytes */ fun newInstance(): UrlComponentEncodingTester = UrlComponentEncodingTester() .allAscii(Encoding.IDENTITY) .nonPrintableAscii(Encoding.PERCENT) .override( Encoding.SKIP, '\t'.code,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 12.3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/container/StandardCrawlerContainer.java
* @return the fully initialized component instance */ protected T get() { final T component = instance == null ? ClassUtil.newInstance(cls) : instance; final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(component.getClass()); for (final FieldDesc fieldDesc : beanDesc.getFieldDescs()) {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 14.3K bytes - Viewed (0) -
guava/src/com/google/common/reflect/Types.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Sep 03 14:03:14 UTC 2025 - 23.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformer.java
if (Map.class.equals(dataClass)) { return dataMap; } try { final Object obj = dataClass.getDeclaredConstructor().newInstance(); BeanUtil.copyMapToBean(dataMap, obj); return obj; } catch (final Exception e) { throw new CrawlerSystemException("Could not create/copy a data map to " + dataClass, e);
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java
assertTrue(Modifier.isPrivate(constructor.getModifiers())); // Make it accessible to test it throws no exception constructor.setAccessible(true); constructor.newInstance(); } @Test public void testCreateSuggestTextId() { // Test normal text String text = "test text"; String id = SuggestUtil.createSuggestTextId(text);
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 18.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/WebApiUtilTest.java
// Test that constructor is accessible when made accessible constructor.setAccessible(true); WebApiUtil instance = constructor.newInstance(); assertNotNull(instance); } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/KuromojiCSVUtilTest.java
// Test that constructor is accessible when made accessible constructor.setAccessible(true); KuromojiCSVUtil instance = constructor.newInstance(); assertNotNull(instance); } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 18.7K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/Invokable.java
} @Override final Object invokeInternal(@Nullable Object receiver, @Nullable Object[] args) throws InvocationTargetException, IllegalAccessException { try { return constructor.newInstance(args); } catch (InstantiationException e) { throw new RuntimeException(constructor + " failed.", e); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 18.4K bytes - Viewed (0)