Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for toIntOrNull (0.55 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt

                      name.equals("client_max_window_bits", ignoreCase = true) -> {
                        if (clientMaxWindowBits != null) unexpectedValues = true // Repeated parameter!
                        clientMaxWindowBits = value?.toIntOrNull()
                        if (clientMaxWindowBits == null) unexpectedValues = true // Not an int!
                      }
    
                      name.equals("client_no_context_takeover", ignoreCase = true) -> {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/StatusLine.kt

          if (statusLine.length < codeStart + 3) {
            throw ProtocolException("Unexpected status line: $statusLine")
          }
          val code =
            statusLine.substring(codeStart, codeStart + 3).toIntOrNull()
              ?: throw ProtocolException(
                "Unexpected status line: $statusLine",
              )
    
          // Parse an optional response message like "OK" or "Not Modified". If it
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Jdk9Platform.kt

              SSLContext.getInstance("TLS")
            }
          }
        }
    
      companion object {
        val isAvailable: Boolean
    
        val majorVersion = System.getProperty("java.specification.version")?.toIntOrNull()
    
        init {
          isAvailable =
            if (majorVersion != null) {
              majorVersion >= 9
            } else {
              try {
                // also present on JDK8 after build 252.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  4. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateFixedIssuesInReleaseNotes.kt

                error("Milestone not set: please rerun the task with `--milestone <milestone>`")
            }
            val version = milestone.get()
            val parts = version.split(".")
            require(parts.size == 3 && parts[2].toIntOrNull()?.let { it != 0 } == true) {
                "Version '$version' is not a patch release. Expected format: x.y.z with z > 0."
            }
            val issues = getFixedIssues()
            require(!issues.isEmpty()) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:49:33 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  5. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/ReleasedVersionsHelper.kt

    import org.gradle.util.GradleVersion
    import java.io.File
    
    
    fun bumpPatchVersion(version: String): String {
        val parts = version.split(".")
        require(parts.size == 3 && parts.all { it.toIntOrNull() != null }) {
            "Version '$version' is not a valid x.y.z version."
        }
        return "${parts[0]}.${parts[1]}.${parts[2].toInt() + 1}"
    }
    
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:47:12 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  6. okhttp/src/androidMain/baseline-prof.txt

    HSPLkotlin/text/MatcherMatchResult;->getRange()Lkotlin/ranges/IntRange;
    HSPLkotlin/text/Regex;-><init>(Ljava/lang/String;)V
    HSPLkotlin/text/Regex;->matches(Ljava/lang/CharSequence;)Z
    HSPLkotlin/text/StringsKt__StringNumberConversionsKt;->toIntOrNull(Ljava/lang/String;)Ljava/lang/Integer;
    HSPLkotlin/text/StringsKt__StringsJVMKt;->endsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
    HSPLkotlin/text/StringsKt__StringsJVMKt;->endsWith(Ljava/lang/String;Ljava/lang/String;Z)Z
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Dec 30 23:28:56 GMT 2024
    - 127.9K bytes
    - Click Count (1)
Back to Top