- Sort Score
- Num 10 results
- Language All
Results 711 - 720 of 2,371 for Try (0.01 seconds)
-
guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java
private static Method[] getMostConcreteMethods(Class<?> type) { Method[] methods = type.getMethods(); for (int i = 0; i < methods.length; i++) { try { methods[i] = type.getMethod(methods[i].getName(), methods[i].getParameterTypes()); } catch (Exception e) { throwIfUnchecked(e); throw new RuntimeException(e); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 9.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java
* 8. We expect the test thread's interrupt state to be false. */ InterruptionUtil.requestInterruptIn(200, MILLISECONDS); assertFalse(Thread.interrupted()); try { delayedFuture.get(20000, MILLISECONDS); fail("expected to be interrupted"); } catch (InterruptedException expected) { } catch (TimeoutException e) { throw new RuntimeException(e); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 8.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/Suggester.java
} /** * Creates a new index if no index exists. * @return True if an index was created, false otherwise. */ public boolean createIndexIfNothing() { try { boolean created = false; final IndicesExistsResponse response = client.admin().indices().prepareExists(getSearchAlias(index)).execute().actionGet(suggestSettings.getIndicesTimeout());Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 21.6K bytes - Click Count (3) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt
} return trustManagers[0] as X509TrustManager } open fun trustManager(sslSocketFactory: SSLSocketFactory): X509TrustManager? { return try { // Attempt to get the trust manager from an OpenJDK socket factory. We attempt this on all // platforms in order to support Robolectric, which mixes classes from both Android and theCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 8.1K bytes - Click Count (0) -
tensorflow/api_template_v1.__init__.py
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Oct 02 22:16:02 GMT 2024 - 7.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java
@SuppressWarnings("deprecation") // tests of a deprecated method @NullUnmarked public class FilesCreateTempDirTest extends TestCase { public void testCreateTempDir() throws IOException { File temp = Files.createTempDir(); try { assertThat(temp.exists()).isTrue(); assertThat(temp.isDirectory()).isTrue(); assertThat(temp.listFiles()).isEmpty(); File child = new File(temp, "child");Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Sep 25 19:16:54 GMT 2025 - 4.1K bytes - Click Count (0) -
fastapi/responses.py
from starlette.responses import StreamingResponse as StreamingResponse # noqa from typing_extensions import deprecated try: import ujson except ImportError: # pragma: nocover ujson = None # type: ignore try: import orjson except ImportError: # pragma: nocover orjson = None # type: ignore @deprecated(Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 09:21:52 GMT 2026 - 3.6K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java
ThrowingTearDown tearDownTwo = new ThrowingTearDown("two"); stack.addTearDown(tearDownTwo); assertEquals(false, tearDownOne.ran); assertEquals(false, tearDownTwo.ran); try { stack.runTearDown(); fail("runTearDown should have thrown an exception"); } catch (RuntimeException expected) { assertThat(expected).hasMessageThat().isEqualTo("two");Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 4.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/NotificationHelper.java
return; } final String body = toSlackMessage(discloser); StreamUtil.split(slackWebhookUrls, "[,\\s]").of(stream -> stream.filter(StringUtil::isNotBlank).forEach(url -> { try (CurlResponse response = Curl.post(url).header("Content-Type", "application/json").body(body).execute()) { if (response.getHttpStatusCode() == 200) { if (logger.isDebugEnabled()) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 6.2K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java
assertEquals(v3(), newV); return null; })); expectMissing(e0()); } public void testMergeNullValue() { try { getMap() .merge( k0(), null, (oldV, newV) -> { throw new AssertionFailedError("Should not call merge function if value was null");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.8K bytes - Click Count (0)