- Sort Score
- Result 10 results
- Languages All
Results 351 - 360 of 1,808 for Try (0.01 sec)
-
samples/guide/src/main/java/okhttp3/recipes/PerCallSettings.java
.build(); // Copy to customize OkHttp for this request. OkHttpClient client1 = client.newBuilder() .readTimeout(500, TimeUnit.MILLISECONDS) .build(); try (Response response = client1.newCall(request).execute()) { System.out.println("Response 1 succeeded: " + response); } catch (IOException e) { System.out.println("Response 1 failed: " + e); }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun May 22 01:29:42 UTC 2016 - 1.9K bytes - Viewed (0) -
src/main/java/jcifs/Address.java
*/ InetAddress toInetAddress() throws UnknownHostException; /** * Guess called name to try for session establishment. These * methods are used by the smb package. * * @return guessed name */ String firstCalledName(); /** * Guess next called name to try for session establishment. These * methods are used by the smb package. *Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessListedClassificationProviderTest.java
assertProvideThrowsException("Project.TestClassification"); } public void test_provide_nullClassificationName() { // Test with null classification name try { provider.provide(null); fail("Should throw exception for null classification name"); } catch (ProvidedClassificationNotFoundException e) { // expected
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java
expectUnchanged(); assertEquals("remove(present) should not remove the element", v0(), get(k0())); } @MapFeature.Require(absent = SUPPORTS_REMOVE) public void testRemove_unsupportedNotPresent() { try { assertNull( "remove(notPresent) should return null or throw UnsupportedOperationException", getMap().remove(k3())); } catch (UnsupportedOperationException tolerated) { }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 5.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/xml/SchemaUtil.java
*/ public static Schema newSchema(final SchemaFactory factory, final File schema) { assertArgumentNotNull("factory", factory); assertArgumentNotNull("schema", schema); try { return factory.newSchema(schema); } catch (final SAXException e) { throw new SAXRuntimeException(e); } } /**Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport); // Test try-with-resources assertTrue(session.isInUse(), "Session should be in use initially"); try (SmbSessionImpl autoSession = session) { // Session is already in use due to transport acquisition
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.7K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
/** * Test that MockWebServer blocks for a call to enqueue() if a request is made before a mock * response is ready. */ @Test fun dispatchBlocksWaitingForEnqueue() { Thread { try { Thread.sleep(1000) } catch (ignored: InterruptedException) { } server.enqueue( MockResponse .Builder() .body("enqueued in the background")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Aug 03 22:38:00 UTC 2025 - 28K bytes - Viewed (0) -
src/main/java/jcifs/util/SmbCircuitBreaker.java
} } long startTime = System.nanoTime(); boolean semaphoreAcquired = backpressureEnabled && requestSemaphore != null; try { activeRequests.incrementAndGet(); State currentState = state.get(); // Check if we should attempt reset if (currentState == State.OPEN && shouldAttemptReset()) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 33.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/SearchHelper.java
* @return GZIP-compressed data * @throws IORuntimeException if compression fails */ protected byte[] gzipCompress(final byte[] data) { try (final ByteArrayOutputStream bos = new ByteArrayOutputStream()) { try (final GZIPOutputStream gzipOut = new GZIPOutputStream(bos)) { gzipOut.write(data); } return bos.toByteArray();Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 35.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java
NtlmPasswordAuthenticator endAuth = new NtlmPasswordAuthenticator("domain", "user", new String(diffAtEnd)); try { // Measure timing for differences at different positions long timeStart = measureEqualsTime(baseAuth, startAuth, TIMING_ITERATIONS);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0)