- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 237 for Runnables (0.06 seconds)
-
guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java
} @CanIgnoreReturnValue static <T extends Throwable> T assertThrows( Class<T> expectedThrowable, ThrowingRunnable runnable) { return doAssertThrows( expectedThrowable, () -> { runnable.run(); return null; }, /* userPassedSupplier= */ false); } private static <T extends Throwable> T doAssertThrows(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.9K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
return s == that.s; } return false; } } static class SameInterfaceInstance { private final Runnable s; public SameInterfaceInstance(Runnable s) { this.s = checkNotNull(s); } @Override public int hashCode() { return s.hashCode(); } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 36.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
} public void testAnonymousClassDefaultConstructor() { int i = 1; String s = "hello world"; Class<?> anonymous = new Runnable() { @Override public void run() { System.out.println(s + i); } }.getClass(); Constructor<?> constructor = anonymous.getDeclaredConstructors()[0];
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 31.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java
* * @author Kurt Alfred Kluever * @author Martin Buchholz */ @NullUnmarked @GwtIncompatible @J2ktIncompatible public class ThreadFactoryBuilderTest extends TestCase { private final Runnable monitoredRunnable = () -> completed = true; private static final UncaughtExceptionHandler UNCAUGHT_EXCEPTION_HANDLER = (thread, throwable) -> {}; private ThreadFactoryBuilder builder;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.8K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildThreadFactory.java
public class BuildThreadFactory implements ThreadFactory { private final AtomicInteger id = new AtomicInteger(); private static final String PREFIX = "BuilderThread"; @Override public Thread newThread(Runnable r) { return new Thread(r, String.format("%s-%d", PREFIX, id.getAndIncrement())); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.4K bytes - Click Count (0) -
android/guava/src/com/google/common/base/internal/Finalizer.java
* collected, and this class can detect when the main class loader has been garbage collected and * stop itself. */ public class Finalizer implements Runnable { private static final Logger logger = Logger.getLogger(Finalizer.class.getName()); /** * Starts the Finalizer thread. FinalizableReferenceQueue calls this method reflectively. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 03:19:29 GMT 2026 - 9.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java
MILLISECONDS.sleep(DELAY_MS); throw new SampleException(); }; private static final Runnable GOOD_RUNNABLE = () -> { try { MILLISECONDS.sleep(DELAY_MS); } catch (InterruptedException e) { throw new RuntimeException(e); } }; private static final Runnable BAD_RUNNABLE = () -> { try { MILLISECONDS.sleep(DELAY_MS);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 9.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/MIENameTest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 20.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ListenableFutureTest.java
.that(ListenableFuture.class.getDeclaredMethods()) .asList() .containsExactly( ListenableFuture.class.getMethod("addListener", Runnable.class, Executor.class)); assertWithMessage( "Do not add new supertypes to ListenableFuture. Its API needs to continue to match the"
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 1.9K bytes - Click Count (0)