- Sort Score
- Num 10 results
- Language All
Results 641 - 650 of 2,240 for throwIf (0.04 seconds)
-
guava-tests/test/com/google/common/util/concurrent/FuturesTransformTest.java
@Override public String apply(Integer input) { if (input.intValue() == VALID_INPUT_DATA) { return RESULT_DATA; } else { throw WRAPPED_EXCEPTION; } } } public void testFutureGetThrowsFunctionException() throws Exception { inputFuture.set(EXCEPTION_DATA); listener.assertException(WRAPPED_EXCEPTION); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 2.2K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java
* possibly run in another thread. * * <p>{@code UncheckedExecutionException} is intended as an alternative to {@code * ExecutionException} when the exception thrown by a task is an unchecked exception. However, it * may also wrap a checked exception in some cases. * * <p>When wrapping an {@code Error} from another thread, prefer {@link ExecutionError}. WhenCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 4.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/FunnelsTest.java
}; try { funnel.funnel(null, primitiveSink); fail(); } catch (NullPointerException ok) { } } public void testAsOutputStream() throws Exception { PrimitiveSink sink = mock(PrimitiveSink.class); OutputStream out = Funnels.asOutputStream(sink); byte[] bytes = {1, 2, 3, 4}; out.write(255); out.write(bytes); out.write(bytes, 1, 2);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 6.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/CompactHashMap.java
} } @SuppressWarnings("unchecked") @J2ktIncompatible private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); int elementCount = stream.readInt(); if (elementCount < 0) { throw new InvalidObjectException("Invalid size: " + elementCount); } init(elementCount); for (int i = 0; i < elementCount; i++) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 39.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java
this.iterator = iterator; } @Override public Iterator<E> iterator() { if (iterator == null) { // TODO: throw something else? Do we worry that people's code and tests // might be relying on this particular type of exception? throw new IllegalStateException(); } try { return iterator; } finally { iterator = null; } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/timer/LogNotificationTargetTest.java
import org.junit.jupiter.api.TestInfo; public class LogNotificationTargetTest extends UnitFessTestCase { private LogNotificationTarget logNotificationTarget; @Override protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); ComponentUtil.register(new LogNotificationHelper(), "logNotificationHelper"); ComponentUtil.getLogNotificationHelper().drainAll();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 4.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/Queues.java
* @return the number of elements transferred * @throws InterruptedException if interrupted while waiting * @since 28.0 (but only since 33.4.0 in the Android flavor) */ @CanIgnoreReturnValue @J2ktIncompatible @GwtIncompatible // BlockingQueue public static <E> int drain( BlockingQueue<E> q, Collection<? super E> buffer, int numElements, Duration timeout) throws InterruptedException {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 18K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/PythonJobTest.java
private TestProcessHelper testProcessHelper; private TestFessConfig testFessConfig; private TestServletContext testServletContext; @Override protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); pythonJob = new PythonJob(); // Setup test components testProcessHelper = new TestProcessHelper();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 22.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/query/QueryProcessor.java
* @param queryCommand the query command implementation to add * @throws IllegalArgumentException if name or queryCommand is null */ public void add(final String name, final QueryCommand queryCommand) { if (name == null || queryCommand == null) { throw new IllegalArgumentException(Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 7.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImplTest.java
public class FileListIndexUpdateCallbackImplTest extends UnitFessTestCase { public FileListIndexUpdateCallbackImpl indexUpdateCallback; @Override protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); indexUpdateCallback = new FileListIndexUpdateCallbackImpl(null, null, 1); } /** Case 1: Normal merge (no duplicates) */ @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 19.7K bytes - Click Count (0)