Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for toIntOrNull (0.18 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/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)
  3. 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)
  4. 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)
Back to Top