Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for getOrNull (0.05 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HeadersCommon.kt

    internal const val HEADER_LIMIT = 256 * 1024L
    
    internal fun Headers.commonName(index: Int): String = namesAndValues.getOrNull(index * 2) ?: throw IndexOutOfBoundsException("name[$index]")
    
    internal fun Headers.commonValue(index: Int): String =
      namesAndValues.getOrNull(index * 2 + 1) ?: throw IndexOutOfBoundsException("value[$index]")
    
    internal fun Headers.commonValues(name: String): List<String> {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 6K bytes
    - Click Count (0)
  2. build-logic/src/main/kotlin/BndBuildAction.kt

        val projectDir = layout.projectDirectory.asFile
    
        val gradleProperties = Properties()
        properties.get().forEach { (k, v) ->
          if (v is Provider<*>) {
            val value = v.getOrNull()
            if (value != null) gradleProperties[k] = value
          } else {
            gradleProperties[k] = v
          }
        }
    
        // Set default values if not present
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  3. okhttp/build.gradle.kts

      // Note that module checking only works on JDK 9+,
      // because the JDK built-in base modules are not available in earlier versions.
      val javaVersion = compileKotlinTask.kotlinJavaToolchain.javaVersion.getOrNull()
      when {
        javaVersion?.isJava9Compatible == true -> {
          logger.info("Module-info checking is enabled; $compileKotlinTask is compiled using Java $javaVersion")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Feb 04 22:16:39 GMT 2026
    - 11.4K bytes
    - Click Count (0)
Back to Top