- Sort Score
- Num 10 results
- Language All
Results 481 - 490 of 1,453 for catch (0.02 seconds)
-
guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsTester.java
} public void testContains_wrongType() { try { assertFalse( "contains(wrongType) should return false or throw", collection.contains(WrongType.VALUE)); } catch (ClassCastException tolerated) { } }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.2K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/Invokable.java
// should work on Java 8. So we emulate it this way. try { accessibleObject.setAccessible(true); return true; } catch (Exception e) { // sneaky checked exception return false; } } /** See {@link java.lang.reflect.AccessibleObject#isAccessible()}. */ public final boolean isAccessible() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 18.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java
try { super.testKeySetRemoveAllNullFromEmpty(); } catch (RuntimeException tolerated) { // GWT's HashMap.keySet().removeAll(null) doesn't throws NPE. } } @Override public void testEntrySetRemoveAllNullFromEmpty() { try { super.testEntrySetRemoveAllNullFromEmpty(); } catch (RuntimeException tolerated) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 12.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dns.kt
val SYSTEM: Dns = DnsSystem() private class DnsSystem : Dns { override fun lookup(hostname: String): List<InetAddress> { try { return InetAddress.getAllByName(hostname).toList() } catch (e: NullPointerException) { throw UnknownHostException("Broken system behaviour for dns lookup of $hostname").apply { initCause(e) } } } } }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 2.2K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/JdkPrefixProfileActivator.java
if (jdk.startsWith("[") || jdk.startsWith("(")) { try { return matchJdkVersionRange(jdk); } catch (InvalidVersionSpecificationException e) { throw new ProfileActivationException( "Invalid JDK version in profile '" + profile.getId() + "': " + e.getMessage()); } }
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 3K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/project/harness/PomTestWrapper.java
return context.getValue(expression) != null; } public Object getValue(String expression) { try { return context.getValue(expression); } catch (JXPathNotFoundException e) { return null; } } public boolean xPathExpressionEqualsValue(String expression, String value) { return context.getValue(expression) != null
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Mar 30 23:08:36 GMT 2025 - 2.8K bytes - Click Count (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt
for (path in fileSystem.list(testCaseDirectory)) { val story00 = path / "story_00.json" if (!fileSystem.exists(story00)) continue try { readStory(story00) result.add(path.name) } catch (ignored: IOException) { // Skip this path. } } return result.toTypedArray<String>() } /** * Reads stories named "story_xx.json" from the folder provided. */
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/ReflectionFreeAssertThrows.java
+ " map in that class."); } Object result; try { result = supplier.get(); } catch (Throwable t) { if (predicate.apply(t)) { // We are careful to set up INSTANCE_OF to match each Predicate to its target Class. @SuppressWarnings("unchecked") T caught = (T) t; return caught; } throw new AssertionError(Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.5K bytes - Click Count (0) -
build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt
versionToIncubating.getOrPut(version) { mutableSetOf() }.addAll(incubating) } } catch (e: Exception) { throw Exception("Unable to parse $sourceFile", e) } } } }
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Jun 02 09:57:54 GMT 2025 - 14.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java
try { super.testKeySetRemoveAllNullFromEmpty(); } catch (RuntimeException tolerated) { // GWT's HashMap.keySet().removeAll(null) doesn't throws NPE. } } @Override public void testEntrySetRemoveAllNullFromEmpty() { try { super.testEntrySetRemoveAllNullFromEmpty(); } catch (RuntimeException tolerated) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 12.4K bytes - Click Count (0)