- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 37 for MutableList (0.07 seconds)
-
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
Collection<String> c = MinimalCollection.of("a", "b", "a"); List<String> list = ImmutableList.copyOf(c); assertEquals(asList("a", "b", "a"), list); List<String> mutableList = asList("a", "b"); list = ImmutableList.copyOf(mutableList); mutableList.set(0, "c"); assertEquals(asList("a", "b"), list); } public void testCopyOf_collectionContainingNull() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 24.4K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt
fun getContributorsFromPullRequests(): Set<GitHubUser> { if (!milestone.isPresent) { error("Milestone not set: please rerun the task with `--milestone <milestone>`") } val prs: MutableList<GitHubPullRequest> = mutableListOf() for (page in 1..10) { val prPage = getMergedContributorPullRequests(page) prs.addAll(prPage) if (prPage.size < PAGE_SIZE) {
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jun 24 07:54:08 GMT 2025 - 5.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorOverridesTest.kt
override val nonDefaultValue: ProxySelector = object : ProxySelector() { override fun select(uri: URI?): MutableList<Proxy> = mutableListOf(java.net.Proxy.NO_PROXY) override fun connectFailed( uri: URI?, sa: SocketAddress?, ioe: java.io.IOException?, ) { }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 11 02:37:00 GMT 2026 - 28.8K bytes - Click Count (0) -
.teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt
} } } private fun mergeUnknownSubprojectsIntoFirstAvailableBucket( buckets: List<BuildTypeBucket>, unknownSubprojects: List<GradleSubproject>, ): MutableList<BuildTypeBucket> = buckets.toMutableList().apply { val firstAvailableBucketIndex = indexOfFirst { it is SmallSubprojectBucket && (Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Feb 12 14:43:33 GMT 2026 - 8.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
object : CookieHandler() { override fun put( uri: URI?, responseHeaders: MutableMap<String, MutableList<String>>?, ) = TODO() override fun get( uri: URI?, requestHeaders: MutableMap<String, MutableList<String>>?, ): MutableMap<String, MutableList<String>> = TODO() } private fun newInterceptorChain(): Interceptor.Chain =
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 49.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt
* * https://github.com/square/okhttp/issues/2409 */ @Test fun connectionsAreNotReusedIfNetworkInterceptorInterferes() { val responsesNotClosed: MutableList<Response?> = ArrayList() client = client .newBuilder() // Since this test knowingly leaks a connection, avoid using the default shared connection
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 12.3K bytes - Click Count (1) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/MockHttp2Peer.kt
class MockHttp2Peer : Closeable { private var frameCount = 0 private var client = false private val bytesOut = Buffer() private var writer = Http2Writer(bytesOut, client) private val outFrames: MutableList<OutFrame> = ArrayList() private val inFrames: BlockingQueue<InFrame> = LinkedBlockingQueue() private var port = 0 private val executor = Executors.newSingleThreadExecutor(threadFactory("MockHttp2Peer"))Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 8.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt
class Builder() { internal var dispatcher: Dispatcher = Dispatcher() internal var connectionPool: ConnectionPool? = null internal val interceptors: MutableList<Interceptor> = mutableListOf() internal val networkInterceptors: MutableList<Interceptor> = mutableListOf() internal var eventListenerFactory: EventListener.Factory = EventListener.NONE.asFactory() internal var retryOnConnectionFailure = true
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 51.5K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
return Validity( notBefore = notBefore, notAfter = notAfter, ) } private fun extensions(): MutableList<Extension> { val result = mutableListOf<Extension>() if (maxIntermediateCas != -1) { result += Extension( id = BASIC_CONSTRAINTS, critical = true,
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 21.6K bytes - Click Count (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
} } private fun headersToList(response: MockResponse): List<String> { val headers = response.headers val size = headers.size val headerList: MutableList<String> = ArrayList(size) for (i in 0 until size) { headerList.add(headers.name(i) + ": " + headers.value(i)) } return headerList } @Test fun shutdownWithoutStart() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 03 13:16:34 GMT 2025 - 22.3K bytes - Click Count (0)