Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 32 for mapOf (0.03 seconds)

  1. 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)
  2. 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)
  3. 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 analysis
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 12 18:27:10 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  4. .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)
  5. 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)
  6. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/runtimes/CheckTargetRuntimes.kt

            projects.forEach { (path, info) ->
                val declaredComputed = info.details.computedRuntimes
                val actualComputed = computedTargetRuntimes[path] ?: mapOf()
    
                if (declaredComputed.toSet() != actualComputed.keys) {
                    if (shouldFix) {
                        when (val result = calculateBuildFileMutation(path, actualComputed.keys, info.buildFile)) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 11 22:40:18 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  7. .teamcity/src/main/kotlin/common/CommonExtensions.kt

    fun functionalTestExtraParameters(
        buildScanTags: List<String>,
        os: Os,
        arch: Arch,
        testJvmVersion: String,
        testJvmVendor: String,
    ): String {
        val buildScanValues =
            mapOf(
                "coverageOs" to os.name.lowercase(),
                "coverageArch" to arch.name.lowercase(),
                "coverageJvmVendor" to testJvmVendor,
                "coverageJvmVersion" to "java$testJvmVersion",
            )
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 13 05:03:56 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  8. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildParams.kt

         */
        const val RUN_BROKEN_CONFIGURATION_CACHE_DOCS_TESTS = "runBrokenConfigurationCacheDocsTests"
    
        internal
        val VENDOR_MAPPING = mapOf(
            "oracle" to JvmVendorSpec.ORACLE,
            "openjdk" to JvmVendorSpec.ADOPTIUM,
            "zulu" to JvmVendorSpec.AZUL
        )
    }
    
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Jan 19 05:13:29 GMT 2026
    - 18K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

      fun certificatePinnerBuilder() {
        val builder: CertificatePinner.Builder = CertificatePinner.Builder()
        builder.add("", "pin1", "pin2")
      }
    
      @Test
      fun challenge() {
        var challenge = Challenge("", mapOf("" to ""))
        challenge = Challenge("", "")
        val scheme: String = challenge.scheme
        val authParams: Map<String?, String> = challenge.authParams
        val realm: String? = challenge.realm
    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)
  10. android/guava/src/com/google/common/reflect/TypeToken.java

       * substituted by {@code typeArg}. For example, it can be used to construct {@code Map<K, V>} for
       * any {@code K} and {@code V} type:
       *
       * {@snippet :
       * static <K, V> TypeToken<Map<K, V>> mapOf(
       *     TypeToken<K> keyType, TypeToken<V> valueType) {
       *   return new TypeToken<Map<K, V>>() {}
       *       .where(new TypeParameter<K>() {}, keyType)
       *       .where(new TypeParameter<V>() {}, valueType);
       * }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 53.8K bytes
    - Click Count (0)
Back to Top