- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 1,453 for catch (0.04 seconds)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveEntryTester.java
} @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_KEY_QUERIES) public void testRemove_nullKeyQueriesUnsupported() { try { assertFalse(getMap().remove(null, v3())); } catch (NullPointerException tolerated) { // since the operation would be a no-op, the exception is not required } expectUnchanged(); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 31 14:51:04 GMT 2024 - 3.9K bytes - Click Count (0) -
compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java
} } catch (XMLStreamException | IOException e) { throw new PlexusConfigurationException(e.getMessage(), e); } } private static BufferedInputStream reset(StreamSupplier inputSupplier, BufferedInputStream bis) throws IOException { try { bis.reset(); return bis; } catch (IOException e) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Mar 25 09:45:07 GMT 2025 - 17.5K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java
conflictResolvers); } catch (CyclicDependencyException e) { logger.debug("While recursing: " + e.getMessage(), e); result.addCircularDependencyException(e); } catch (OverConstrainedVersionException e) { logger.debug("While recursing: " + e.getMessage(), e); result.addVersionRangeViolation(e); } catch (ArtifactResolutionException e) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 36.5K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
bestGetCheckedTypeValidator().validateClass(exceptionClass); try { return future.get(timeout, unit); } catch (InterruptedException e) { currentThread().interrupt(); throw newWithCause(exceptionClass, e); } catch (TimeoutException e) { throw newWithCause(exceptionClass, e); } catch (ExecutionException e) { wrapAndThrowExceptionOrError(e.getCause(), exceptionClass); throw new AssertionError();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 10.2K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
K unmappedKey; try { map = makePopulatedMap(); unmappedKey = getKeyNotInPopulatedMap(); } catch (UnsupportedOperationException e) { return; } assertFalse(map.containsKey(unmappedKey)); try { assertFalse(map.containsKey(new IncompatibleKeyType())); } catch (ClassCastException tolerated) { } assertTrue(map.containsKey(map.keySet().iterator().next()));Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 43.9K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java
} catch (AssertionFailedError expected) { } try { assertContentsInOrder(list, "a", "c", "b"); throw new Error(); } catch (AssertionFailedError expected) { } try { assertContentsInOrder(list, "a", "B", "c"); throw new Error(); } catch (AssertionFailedError expected) { } } public void testAssertContains() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Apr 12 15:07:59 GMT 2025 - 4.9K bytes - Click Count (0) -
guava-testlib/test/com/google/common/collect/testing/HelpersTest.java
} catch (AssertionFailedError expected) { } try { assertContentsInOrder(list, "a", "c", "b"); throw new Error(); } catch (AssertionFailedError expected) { } try { assertContentsInOrder(list, "a", "B", "c"); throw new Error(); } catch (AssertionFailedError expected) { } } public void testAssertContains() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Apr 12 15:07:59 GMT 2025 - 4.9K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
bestGetCheckedTypeValidator().validateClass(exceptionClass); try { return future.get(timeout, unit); } catch (InterruptedException e) { currentThread().interrupt(); throw newWithCause(exceptionClass, e); } catch (TimeoutException e) { throw newWithCause(exceptionClass, e); } catch (ExecutionException e) { wrapAndThrowExceptionOrError(e.getCause(), exceptionClass); throw new AssertionError();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 11.8K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java
try { getMap().replace(k3(), null); } catch (NullPointerException tolerated) { // permitted not to throw because it would be a no-op } expectUnchanged(); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEY_QUERIES) public void testReplace_absentNullKeyUnsupported() { try { getMap().replace(null, v3()); } catch (NullPointerException tolerated) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 31 14:51:04 GMT 2024 - 4K bytes - Click Count (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
val byteRead = inputStream.read() // OpenJDK behavior: end of stream. assertThat(byteRead).isEqualTo(-1) } catch (e: ProtocolException) { // On Android, HttpURLConnection is implemented by OkHttp v2. OkHttp // treats an incomplete response body as a ProtocolException. } catch (ioe: IOException) { // Change in https://bugs.openjdk.org/browse/JDK-8335135
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Aug 03 22:38:00 GMT 2025 - 28K bytes - Click Count (0)