- Sort Score
- Result 10 results
- Languages All
Results 661 - 670 of 1,808 for try (0.01 sec)
-
src/test/java/org/codelibs/fess/opensearch/client/SearchEngineClientExceptionTest.java
} assertTrue(foundTestMethod); } public void test_throwAndCatch() { // Test throwing and catching the exception String message = "Throw and catch test"; try { throw new SearchEngineClientException(message); } catch (SearchEngineClientException e) { assertEquals(message, e.getMessage()); assertNull(e.getCause()); } }Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.9K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java
.build(); System.out.println("REQUEST 1 (new connection)"); try (Response response = client.newCall(request).execute()) { // Consume and discard the response body. response.body().source().readByteString(); } System.out.println("REQUEST 2 (pooled connection)"); try (Response response = client.newCall(request).execute()) { // Consume and discard the response body.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 16 23:20:49 UTC 2020 - 5.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java
})); expectUnchanged(); } @MapFeature.Require(absent = SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testComputeIfAbsent_unsupportedPresentExistingValue() { try { assertEquals( "computeIfAbsent(present, returnsCurrentValue) should return present or throw", v0(), getMap() .computeIfAbsent( k0(),Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 6.7K bytes - Viewed (0) -
android/guava/src/com/google/common/eventbus/Subscriber.java
this.executor = bus.executor(); } /** Dispatches {@code event} to this subscriber using the proper executor. */ final void dispatchEvent(Object event) { executor.execute( () -> { try { invokeSubscriberMethod(event); } catch (InvocationTargetException e) { bus.handleSubscriberException(e.getCause(), context(event)); } }); } /**Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 4.7K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java
// Only select snapshots that are unresolved (eg 1.0-SNAPSHOT, not 1.0-20050607.123456) if (artifact.isSnapshot() && artifact.getBaseVersion().equals(artifact.getVersion())) { try { String version = resolveVersion(artifact, request); artifact.updateVersion(version, request.getLocalRepository()); } catch (RepositoryMetadataResolutionException e) {
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
class Trans2GetDfsReferralTest { private static Object getPrivateField(Object target, String fieldName) throws Exception { Class<?> clazz = target.getClass(); while (clazz != null) { try { Field f = clazz.getDeclaredField(fieldName); f.setAccessible(true); return f.get(target); } catch (NoSuchFieldException e) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java
} public void testParse() { RobotsTxt robotsTxt; final InputStream in = RobotsTxtHelperTest.class.getResourceAsStream("robots.txt"); try { robotsTxt = robotsTxtHelper.parse(in); } finally { CloseableUtil.closeQuietly(in); }Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/FessConfigTest.java
public Integer getAsInteger(String propertyKey) { String value = get(propertyKey); if (value == null) { return null; } try { return Integer.valueOf(value); } catch (NumberFormatException e) { return null; } } @Override
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 23.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
PermittedMetaException referenceException = null; Object targetReturnValue = null; Exception targetException = null; try { targetReturnValue = method.execute(target); } catch (Exception e) { // sneaky checked exception targetException = e; } try { if (method == NEXT_METHOD && targetException == null && knownOrder == KnownOrder.UNKNOWN_ORDER) { /*Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 20.8K bytes - Viewed (0) -
docs/smb3-features/01-smb3-lease-design.md
try (SmbFile file = new SmbFile("smb://server/share/test.txt", context)) { // Open file with lease file.createNewFile(); // Verify lease was granted assertTrue(file.canCacheRead()); // Write should be cached try (OutputStream os = file.getOutputStream()) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 22K bytes - Viewed (0)