- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 10 for mapOf (0.02 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/HeadersTest.kt
@Test fun ofMapThrowsOnEmptyName() { assertFailsWith<IllegalArgumentException> { mapOf("" to "OkHttp").toHeaders() } } @Test fun ofMapThrowsOnBlankName() { assertFailsWith<IllegalArgumentException> { mapOf(" " to "OkHttp").toHeaders() } } @Test fun ofMapAcceptsEmptyValue() { val headers = mapOf("User-Agent" to "").toHeaders() assertThat(headers.value(0)).isEqualTo("") }
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) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-jar.gradle.kts
tasks.withType<Jar>().configureEach { archiveBaseName = gradleModule.identity.baseName archiveVersion = gradleModule.identity.version.map { it.baseVersion.version } manifest.attributes( mapOf( Attributes.Name.IMPLEMENTATION_TITLE.toString() to "Gradle", Attributes.Name.IMPLEMENTATION_VERSION.toString() to gradleModule.identity.version.map { it.baseVersion.version } )
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jan 06 16:39:05 GMT 2026 - 713 bytes - Click Count (0) -
regression-test/build.gradle.kts
// Make sure to use the AndroidJUnitRunner (or a sub-class) in order to hook in the JUnit 5 Test Builder testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunnerArguments += mapOf( "notClass" to "org.conscrypt.KitKatPlatformOpenSSLSocketImplAdapter,org.bouncycastle.pqc.crypto.qtesla.QTeslaKeyEncodingTests" ) } compileOptions { targetCompatibility(JavaVersion.VERSION_11)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 1.6K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/kotlindsl/kotlin-compiler-configuration.kt
CommonConfigurationKeys.LANGUAGE_VERSION_SETTINGS, LanguageVersionSettingsImpl( languageVersion = LanguageVersion.KOTLIN_2_2, apiVersion = ApiVersion.KOTLIN_2_2, analysisFlags = mapOf( JvmAnalysisFlags.javaTypeEnhancementState to JavaTypeEnhancementState( Jsr305Settings(ReportLevel.STRICT, ReportLevel.STRICT) ) { ReportLevel.STRICT }, )Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jul 08 12:31:49 GMT 2025 - 2.6K bytes - Click Count (0) -
android-test/build.gradle.kts
// Make sure to use the AndroidJUnitRunner (or a sub-class) in order to hook in the JUnit 5 Test Builder testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunnerArguments += mapOf( "runnerBuilder" to "de.mannodermaus.junit5.AndroidJUnit5Builder", "notPackage" to "org.bouncycastle", "configurationParameters" to "junit.jupiter.extensions.autodetection.enabled=true" ) }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 3.8K bytes - Click Count (2) -
okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt
url: HttpUrl, cookies: List<Cookie>, ) { val cookieStrings = mutableListOf<String>() for (cookie in cookies) { cookieStrings.add(cookieToString(cookie, true)) } val multimap = mapOf("Set-Cookie" to cookieStrings) try { cookieHandler.put(url.toUri(), multimap) } catch (e: IOException) { Platform.get().log("Saving cookies failed for " + url.resolve("/...")!!, WARN, e) } }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Mar 19 07:46:39 GMT 2026 - 3.9K bytes - Click Count (0) -
build-logic-commons/publishing/src/main/kotlin/gradlebuild.kotlin-dsl-plugin-bundle.gradle.kts
destinationFile = futurePluginVersionsPropertiesFile } val futurePluginVersionsDestDir = futurePluginVersionsPropertiesFile.map { it.asFile.parentFile } sourceSets.main { output.dir(mapOf("builtBy" to writeFuturePluginVersions), futurePluginVersionsDestDir) } configurations.runtimeElements { outgoing { variants.named("resources") { artifact(futurePluginVersionsDestDir) {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Mar 13 11:01:20 GMT 2026 - 6.2K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild.minify.gradle.kts
* reflection, dynamic loading, etc. and understand how the library works internally. * These changes might break things in subtle ways otherwise. */ val keepPatterns = mapOf( "it.unimi.dsi:fastutil" to setOf( // For persistence cache "it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap", // For Java compilation incremental analysisCreated: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Mar 12 18:27:10 GMT 2026 - 5.8K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/StageTriggers.kt
import model.CIBuildModel import model.Stage import model.StageName import model.Trigger import projects.StageProject val stageWithOsTriggers: Map<StageName, List<Os>> = mapOf( StageName.PULL_REQUEST_FEEDBACK to listOf(Os.LINUX, Os.WINDOWS), StageName.READY_FOR_NIGHTLY to listOf(Os.LINUX, Os.WINDOWS, Os.MACOS), StageName.READY_FOR_RELEASE to listOf(Os.LINUX, Os.WINDOWS, Os.MACOS),
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Feb 06 13:13:53 GMT 2026 - 7.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt
assertThat(headers.toString()).isEqualTo("header1: valué1\n") } // Fails on JS, ClassCastException: Illegal cast @Test fun ofMapThrowsOnNull() { assertFailsWith<NullPointerException> { (mapOf("User-Agent" to null) as Map<String, String>).toHeaders() } } @Test fun toMultimapGroupsHeaders() { val headers = Headers.headersOf( "cache-control", "no-cache",
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue May 27 14:51:25 GMT 2025 - 5.7K bytes - Click Count (0)