- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 210 for Loop (0.17 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Protocol.kt
* * @throws IOException if `protocol` is unknown. */ @JvmStatic @Throws(IOException::class) fun get(protocol: String): Protocol { // Unroll the loop over values() to save an allocation. @Suppress("DEPRECATION") return when (protocol) { HTTP_1_0.protocol -> HTTP_1_0 HTTP_1_1.protocol -> HTTP_1_1
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jun 23 18:58:57 UTC 2025 - 4.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt
assertThat(inflater.inflate(message)).isEqualTo("Hello inflation!".encodeUtf8()) } /** * We had a bug where self-finishing inflater streams would infinite loop! * https://github.com/square/okhttp/issues/8078 */ @Test fun `inflate returns finished before bytesRead reaches input length`() { val inflater = MessageInflater(false) val message = "53621260020000".decodeHex()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
int result = response.readBytesWireFormat(buffer, bufferIndex); assertEquals(8, result); assertNotNull(response.getResults()); // Even with -1, the do-while loop executes at least once due to the bug assertEquals(1, response.getResults().length); } @Test @DisplayName("Test readBytesWireFormat with offset calculation")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
cmd/generic-handlers_test.go
{name: "long-fail", input: strings.Repeat("a/", 2000) + "../..", want: true}, } for _, tt := range tests { t.Run(tt.name, func(b *testing.B) { b.SetBytes(int64(len(tt.input))) b.ReportAllocs() for b.Loop() { if got := hasBadPathComponent(tt.input); got != tt.want { t.Fatalf("hasBadPathComponent() = %v, want %v", got, tt.want) } } }) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 6.2K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java
protected void startUp() throws Exception {} /** * Run the service. This method is invoked on the execution thread. Implementations must respond * to stop requests. You could poll for lifecycle changes in a work loop: * * <pre> * public void run() { * while ({@link #isRunning()}) { * // perform a unit of work * } * } * </pre> *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 7.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt
readyTask != null -> { multipleReadyTasks = true break@eachQueue } // We have a task to execute when we complete the loop. else -> { readyTask = candidate } } } // Implement the decision. when { // We have a task ready to go. Get ready.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:30:11 UTC 2025 - 10.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java
public @Nullable Entry<K, V> firstEntry() { return standardFirstEntry(); } /* * We can't override lastEntry to delegate to standardLastEntry, as it would create an infinite * loop. Instead, we test standardLastEntry manually below. */ @Override public @Nullable Entry<K, V> pollFirstEntry() { return standardPollFirstEntry(); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 9.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java
protected void startUp() throws Exception {} /** * Run the service. This method is invoked on the execution thread. Implementations must respond * to stop requests. You could poll for lifecycle changes in a work loop: * * <pre> * public void run() { * while ({@link #isRunning()}) { * // perform a unit of work * } * } * </pre> *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 7.2K bytes - Viewed (0) -
android/guava/src/com/google/common/io/TempFileCreator.java
return File.createTempFile( /* prefix= */ prefix, /* suffix= */ null, /* directory= */ null /* defaults to java.io.tmpdir */); } /** Maximum loop count when creating temp directories. */ private static final int TEMP_DIR_ATTEMPTS = 10000; } private static final class ThrowingCreator extends TempFileCreator { private static final String MESSAGE =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 12.5K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/GraphBuilder.java
return new ImmutableGraph.Builder<>(castBuilder); } /** * Specifies whether the graph will allow self-loops (edges that connect a node to itself). * Attempting to add a self-loop to a graph that does not allow them will throw an {@link * UnsupportedOperationException}. * * <p>The default value is {@code false}. */ @CanIgnoreReturnValue
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.3K bytes - Viewed (0)