Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for checkNotNull (0.5 sec)

  1. okhttp/src/main/kotlin/okhttp3/Handshake.kt

          val cipherSuite =
            when (val cipherSuiteString = checkNotNull(cipherSuite) { "cipherSuite == null" }) {
              "TLS_NULL_WITH_NULL_NULL", "SSL_NULL_WITH_NULL_NULL" -> {
                throw IOException("cipherSuite == $cipherSuiteString")
              }
              else -> CipherSuite.forJavaName(cipherSuiteString)
            }
    
          val tlsVersionString = checkNotNull(protocol) { "tlsVersion == null" }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

        fun build(): DnsOverHttps {
          val client = this.client ?: throw NullPointerException("client not set")
          return DnsOverHttps(
            client.newBuilder().dns(buildBootstrapClient(this)).build(),
            checkNotNull(url) { "url not set" },
            includeIPv6,
            post,
            resolvePrivateAddresses,
            resolvePublicAddresses,
          )
        }
    
        fun client(client: OkHttpClient) =
          apply {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Response.kt

        }
    
        open fun build(): Response {
          check(code >= 0) { "code < 0: $code" }
          return Response(
            checkNotNull(request) { "request == null" },
            checkNotNull(protocol) { "protocol == null" },
            checkNotNull(message) { "message == null" },
            code,
            handshake,
            headers.build(),
            body,
            networkResponse,
            cacheResponse,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

            removeSnapshot = nextSnapshot
            nextSnapshot = null
            return removeSnapshot!!
          }
    
          override fun remove() {
            val removeSnapshot = this.removeSnapshot
            checkNotNull(removeSnapshot) { "remove() before next()" }
            try {
              ******@****.***(removeSnapshot.key())
            } catch (_: IOException) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Request.kt

    /**
     * An HTTP request. Instances of this class are immutable if their [body] is null or itself
     * immutable.
     */
    class Request internal constructor(builder: Builder) {
      @get:JvmName("url")
      val url: HttpUrl = checkNotNull(builder.url) { "url == null" }
    
      @get:JvmName("method")
      val method: String = builder.method
    
      @get:JvmName("headers")
      val headers: Headers = builder.headers.build()
    
      @get:JvmName("body")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

          check(x509TrustManager == null)
          check(certificatePinner == CertificatePinner.DEFAULT)
        } else {
          checkNotNull(sslSocketFactoryOrNull) { "sslSocketFactory == null" }
          checkNotNull(certificateChainCleaner) { "certificateChainCleaner == null" }
          checkNotNull(x509TrustManager) { "x509TrustManager == null" }
        }
      }
    
      /** Prepares the [request] to be executed at some point in the future. */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  7. okhttp-android/src/main/baseline-prof.txt

    HSPLkotlin/jvm/internal/ArrayIterator;->hasNext()Z
    HSPLkotlin/jvm/internal/ArrayIterator;->next()Ljava/lang/Object;
    HSPLkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
    HSPLkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
    HSPLkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
    HSPLkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
Back to top