- Sort Score
- Num 10 results
- Language All
Results 261 - 270 of 1,453 for catch (0.76 seconds)
-
guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java
} private void assertSetCountNegativeOldCount() { try { getMultiset().setCount(e3(), -1, 1); fail("calling setCount() with a negative oldCount should throw IllegalArgumentException"); } catch (IllegalArgumentException expected) { } } // Negative oldCount. @CollectionFeature.Require(SUPPORTS_ADD) public void testSetCountConditional_negativeOldCount_addSupported() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 4K bytes - Click Count (0) -
samples/slack/src/main/java/okhttp3/slack/OAuthSessionFactory.java
.setResponseCode(404) .setBody("unexpected request"); } try { OAuthSession session = slackApi.exchangeCode(code, redirectUrl()); listener.sessionGranted(session); } catch (IOException e) { return new MockResponse() .setResponseCode(400) .setBody("code exchange failed: " + e.getMessage()); } synchronized (this) { listeners.remove(state);
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Aug 12 07:26:27 GMT 2021 - 3.8K bytes - Click Count (1) -
guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java
try { AbstractExecutionThreadService.this.run(); } catch (Throwable t) { restoreInterruptIfIsInterruptedException(t); try { shutDown(); } catch (Exception ignored) { restoreInterruptIfIsInterruptedException(ignored);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Jul 11 18:52:30 GMT 2025 - 7.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java
protected abstract List<Class<? extends AbstractTester>> getTesters(); private boolean matches(Test test) { Method method; try { method = extractMethod(test); } catch (IllegalArgumentException e) { logger.finer(Platform.format("%s: including by default: %s", test, e.getMessage())); return true; } if (suppressedTests.contains(method)) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 10.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt
*/ @JvmOverloads fun charset(defaultValue: Charset? = null): Charset? { val charset = parameter("charset") ?: return defaultValue return try { Charset.forName(charset) } catch (_: IllegalArgumentException) { defaultValue // This charset is invalid or unsupported. Give up. } } /** * Returns the parameter [name] of this media type, or null if this media type does not define
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue May 27 14:51:08 GMT 2025 - 5.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java
return values().asList().get(index + 1); }); } catch (UnsupportedOperationException tolerated) { } expectUnchanged(); } @MapFeature.Require(absent = SUPPORTS_PUT) public void testReplaceAll_unsupportedNoOpFunction() { try { getMap().replaceAll((K k, V v) -> v); } catch (UnsupportedOperationException tolerated) { } expectUnchanged(); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 31 14:51:04 GMT 2024 - 4.5K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExtensionEntry.java
artifacts.addAll(descriptor.getExportedArtifacts()); packages.addAll(descriptor.getExportedPackages()); } } } catch (IOException ignored) { // exports descriptors are entirely optional } return new CoreExtensionEntry(loader, artifacts, packages, null, null); }
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 4.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
Thread waiter = new Thread() { @Override public void run() { try { service.awaitTermination(1, DAYS); } catch (InterruptedException e) { return; } } }; waiter.start(); awaitTimedWaiting(waiter); service.shutdown();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 12 00:25:21 GMT 2025 - 26.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
Thread waiter = new Thread() { @Override public void run() { try { service.awaitTermination(1, DAYS); } catch (InterruptedException e) { return; } } }; waiter.start(); awaitTimedWaiting(waiter); service.shutdown();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 12 00:25:21 GMT 2025 - 26.5K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/DslDocModel.groovy
docBuilder.build(doc) return doc } catch (ClassDocGenerationException e) { throw e } catch (Exception e) { throw new ClassDocGenerationException("Could not load the class documentation for class '$className'.", e) } } finally {
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 4.9K bytes - Click Count (0)