- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 452 for jthrowable (0.37 sec)
-
android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java
.execute( () -> { try { startUp(); notifyStarted(); } catch (Throwable t) { restoreInterruptIfIsInterruptedException(t); notifyFailed(t); } }); } @Override protected final void doStop() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 13:59:28 UTC 2023 - 5.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/AbstractIteratorTest.java
// next() both start by invoking hasNext() anyway. /** Throws an undeclared checked exception. */ private static void sneakyThrow(Throwable t) { class SneakyThrower<T extends Throwable> { @SuppressWarnings("unchecked") // intentionally unsafe for test void throwIt(Throwable t) throws T { throw (T) t; } } new SneakyThrower<Error>().throwIt(t); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 5.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/InterceptorTest.kt
val recordedResponse = callback.await(server.url("/")) assertThat(recordedResponse.failure, "canceled due to java.lang.RuntimeException: boom!") recordedResponse.failure!!.assertSuppressed { throwables: List<Throwable>? -> assertThat(throwables!!).contains(boom) Unit } assertThat(call.isCanceled()).isTrue() assertThat(executor.takeException()).isEqualTo(boom) } @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 27.8K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/resolution/UnresolvableModelException.java
* @param cause The cause, may be {@code null}. */ public UnresolvableModelException( String message, String groupId, String artifactId, String version, Throwable cause) { super(message, cause); this.groupId = (groupId != null) ? groupId : ""; this.artifactId = (artifactId != null) ? artifactId : ""; this.version = (version != null) ? version : "";
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
// next() both start by invoking hasNext() anyway. /** Throws an undeclared checked exception. */ private static void sneakyThrow(Throwable t) { class SneakyThrower<T extends Throwable> { @SuppressWarnings("unchecked") // not really safe, but that's the point void throwIt(Throwable t) throws T { throw (T) t; } } new SneakyThrower<Error>().throwIt(t); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 8.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
// next() both start by invoking hasNext() anyway. /** Throws an undeclared checked exception. */ private static void sneakyThrow(Throwable t) { class SneakyThrower<T extends Throwable> { @SuppressWarnings("unchecked") // not really safe, but that's the point void throwIt(Throwable t) throws T { throw (T) t; } } new SneakyThrower<Error>().throwIt(t); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 8.1K bytes - Viewed (0) -
src/main/java/jcifs/context/CIFSContextCredentialWrapper.java
return this.creds; } /** * {@inheritDoc} * * @see jcifs.CIFSContext#renewCredentials(java.lang.String, java.lang.Throwable) */ @Override public boolean renewCredentials ( String locationHint, Throwable error ) { Credentials cred = getCredentials(); if ( cred instanceof SmbRenewableCredentials ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Aug 02 08:32:29 UTC 2018 - 2.7K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt
* so tests pass on GraalVM, where suppressed exceptions are silently discarded. * * https://github.com/oracle/graal/issues/3008 */ @JvmStatic fun Throwable.assertSuppressed(block: (List<@JvmSuppressWildcards Throwable>) -> Unit) { if (isGraalVmImage) return block(suppressed.toList()) } @JvmStatic fun threadFactory(name: String): ThreadFactory {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 4.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java
Object newValue = new Object(); valueRef.set(newValue); assertSame(newValue, cache.getUnchecked(new Object())); } public void testGetUnchecked_otherThrowable() { final Throwable cause = new Throwable(); final AtomicReference<Object> valueRef = new AtomicReference<>(); LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java
Object newValue = new Object(); valueRef.set(newValue); assertSame(newValue, cache.getUnchecked(new Object())); } public void testGetUnchecked_otherThrowable() { final Throwable cause = new Throwable(); final AtomicReference<Object> valueRef = new AtomicReference<>(); LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 5K bytes - Viewed (0)