- Sort Score
- Result 10 results
- Languages All
Results 751 - 760 of 1,808 for try (0.05 sec)
-
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Uninterruptibles.java
public final class Uninterruptibles { private Uninterruptibles() {} @CanIgnoreReturnValue public static <V extends @Nullable Object> V getUninterruptibly(Future<V> future) throws ExecutionException { try { return future.get(); } catch (InterruptedException e) { // Should never be thrown in GWT but play it safe throw new IllegalStateException(e); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ListsTest.java
} private static void assertTransformModifiable(List<String> list) { try { list.add("5"); fail("transformed list is addable"); } catch (UnsupportedOperationException expected) { } list.remove(0); assertEquals(asList("2", "3", "4"), list); list.remove("3"); assertEquals(asList("2", "4"), list); try { list.set(0, "5"); fail("transformed list is setable");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java
synchronized (this) { if (!isThreadScheduled) { isThreadScheduled = true; scheduleEventRunner = true; } } if (scheduleEventRunner) { try { executor.execute(this); } catch (Exception e) { // sneaky checked exception // reset state in case of an error so that later dispatch calls will actually do something
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 8.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileHandleImpl.java
* @param lastWriteTime * @throws SmbException */ void closeInternal(final long lastWriteTime, final boolean explicit) throws CIFSException { final SmbTreeHandleImpl t = this.tree; try { if (t != null && isValid()) { if (log.isDebugEnabled()) { log.debug("Closing file handle " + this); } if (t.isSMB2()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.4K bytes - Viewed (1) -
src/test/java/jcifs/SmbTreeTest.java
* Verifies that SmbTree can be used in try-with-resources. */ @Test void testAutoCloseable() { SmbTree autoCloseTree = mock(SmbTree.class); doNothing().when(autoCloseTree).close(); try (SmbTree tree = autoCloseTree) { assertNotNull(tree, "Tree should not be null in try block"); } verify(autoCloseTree).close(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/action/FessMessagesTest.java
public void test_addErrorsFrontHeader_nullProperty() { try { messages.addErrorsFrontHeader(null); fail("Should throw exception for null property"); } catch (IllegalArgumentException e) { // Expected } } public void test_addConstraintsDecimalMaxMessage_nullProperty() { try { messages.addConstraintsDecimalMaxMessage(null, "100");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 28.2K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
} else { serialTaskQueue.addLast(yieldCompleteTask) } val startedTask = startNextTask() val otherTasksStarted = startedTask != yieldCompleteTask try { while (currentTask != self) { taskRunner.wait() } } finally { serialTaskQueue.remove(yieldCompleteTask) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 11.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt
withLock { runCallCount++ awaitTaskToRun() } ?: return val currentThread = Thread.currentThread() val oldName = currentThread.name try { while (true) { currentThread.name = task.name val delayNanos = logger.logElapsed(task, task.queue!!) { task.runOnce() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:30:11 UTC 2025 - 10.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java
if (!compareAndSet(null, currentThread)) { return; // someone else has run or is running. } boolean run = !isDone(); T result = null; Throwable error = null; try { if (run) { result = runInterruptibly(); } } catch (Throwable t) { restoreInterruptIfIsInterruptedException(t); error = t; } finally {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 10K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/converter/AnalyzerConverterTest.java
@Test public void testConvertWithNullText() throws IOException { // Test convert with null text - this might throw exception String text = null; String field = "content"; try { List<String> results = converter.convert(text, field, "en"); assertNotNull(results); } catch (Exception e) { // Expected behavior - null text might cause exception
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 12.5K bytes - Viewed (0)