- Sort Score
- Result 10 results
- Languages All
Results 1061 - 1070 of 1,947 for threw (0.02 sec)
-
samples/guide/src/main/java/okhttp3/recipes/kt/PostForm.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.3K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/SynchronousGet.kt
val request = Request .Builder() .url("https://publicobject.com/helloworld.txt") .build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") for ((name, value) in response.headers) { println("$name: $value") } println(response.body.string()) } } } fun main() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.2K bytes - Viewed (0) -
guava/src/com/google/common/io/CharStreams.java
*/ public static void skipFully(Reader reader, long n) throws IOException { checkNotNull(reader); while (n > 0) { long amt = reader.skip(n); if (amt == 0) { throw new EOFException(); } n -= amt; } } /** * Returns a {@link Writer} that simply discards written chars. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 30 17:25:01 UTC 2025 - 10.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeBasedTable.java
updateBackingRowMapField(); if (backingRowMap == null) { throw new NoSuchElementException(); } return ((SortedMap<C, V>) backingRowMap).firstKey(); } @Override public C lastKey() { updateBackingRowMapField(); if (backingRowMap == null) { throw new NoSuchElementException(); } return ((SortedMap<C, V>) backingRowMap).lastKey();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 18 15:05:43 UTC 2025 - 11.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
assertEquals(1024, response.getCount()); assertEquals(512, response.getRemaining()); } @Test @DisplayName("Should throw exception for invalid structure size") void testInvalidStructureSize() { byte[] buffer = new byte[64]; SMBUtil.writeInt2(16, buffer, 0); // Wrong structure size (should be 17)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/NtlmMessageTest.java
// Test with offset pointing outside array bounds (should throw ArrayIndexOutOfBoundsException) buffer.putShort(0, (short) 1); buffer.putShort(2, (short) 1); buffer.putInt(4, data.length + 1); // Invalid offset assertThrows(ArrayIndexOutOfBoundsException.class, () -> NtlmMessage.readSecurityBuffer(data, 0), "Should throw ArrayIndexOutOfBoundsException for invalid offset."); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/util/ResourceManager.java
* * @param resource the resource to track * @return resource ID for tracking */ public String registerResource(AutoCloseable resource) { if (resource == null) { throw new IllegalArgumentException("Resource cannot be null"); } String resourceId = generateResourceId(resource); ResourceHolder holder = new ResourceHolder(resourceId, resource, referenceQueue);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.2K bytes - Viewed (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
* @throws SmbException if account is locked out */ public boolean checkAttempt(String username, String sourceIp) throws SmbException { if (closed.get()) { throw new IllegalStateException("Rate limiter is closed"); } // Check global rate limit if (!checkGlobalRateLimit()) { totalAttemptsBlocked.incrementAndGet();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/internal/RecordedRequestFactory.kt
val parts = when { requestLine != null -> requestLine.split(' ', limit = 3) else -> return DEFAULT_REQUEST_LINE_HTTP_1 } if (parts.size != 3) { throw ProtocolException("unexpected request line: $requestLine") } return RequestLine( method = parts[0], target = parts[1], version = parts[2], ) } internal class RequestLine(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 12:43:16 UTC 2025 - 3.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformToAsciiTest.kt
} else { if (failure != null) failures += failure } } if (failures.isNotEmpty()) { for (failure in failures) { println(failure) } throw failures.first() } } private fun testToAscii( input: String, output: String?, comment: String?, ) { val url = "https://$input/".toHttpUrlOrNull()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3.5K bytes - Viewed (0)