Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for unchecked (0.34 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        if (timeoutEarlyExit) return cause
        if (!timeout.exit()) return cause
    
        val e = InterruptedIOException("timeout")
        if (cause != null) e.initCause(cause)
        @Suppress("UNCHECKED_CAST") // E is either IOException or IOException?
        return e as E
      }
    
      /**
       * Stops applying the timeout before the call is entirely complete. This is used for WebSockets
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  2. docs/changelogs/changelog_4x.md

        scheduling. In your debugger you will see new thread names and more use of daemon threads.
    
     *  Fix: Don't drop callbacks on unexpected exceptions. When an interceptor throws an unchecked
        exception the callback is now notified that the call was canceled. The exception is still sent
        to the uncaught exception handler for reporting and recovery.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

        }
      }
      return false
    }
    
    internal fun Array<String>.indexOf(
      value: String,
      comparator: Comparator<String>,
    ): Int = indexOfFirst { comparator.compare(it, value) == 0 }
    
    @Suppress("UNCHECKED_CAST")
    internal fun Array<String>.concat(value: String): Array<String> {
      val result = copyOf(size + 1)
      result[result.lastIndex] = value
      return result as Array<String>
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

       * true when removing a connection from the pool; otherwise a racing caller might get it from the
       * pool when it shouldn't. Symmetrically, this must always be checked before returning a
       * connection from the pool.
       *
       * Once true this is always true. Guarded by this.
       */
      var noNewExchanges = false
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

    import java.net.ProtocolException
    import okio.ByteString
    
    /**
     * ASN.1 adapters adapted from the specifications in [RFC 5280][rfc_5280].
     *
     * [rfc_5280]: https://tools.ietf.org/html/rfc5280
     */
    @Suppress("UNCHECKED_CAST") // This needs to cast decoded collections.
    internal object CertificateAdapters {
      /**
       * ```
       * Time ::= CHOICE {
       *   utcTime        UTCTime,
       *   generalTime    GeneralizedTime
       * }
       * ```
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.6K bytes
    - Viewed (1)
  6. okhttp/src/main/kotlin/okhttp3/Cache.kt

        fun Response.hasVaryAll(): Boolean = "*" in headers.varyFields()
    
        /**
         * Returns the names of the request headers that need to be checked for equality when caching.
         */
        private fun Headers.varyFields(): Set<String> {
          var result: MutableSet<String>? = null
          for (i in 0 until size) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

    @SafeVarargs
    internal fun <T> immutableListOf(vararg elements: T): List<T> {
      return Collections.unmodifiableList(listOf(*elements.clone()))
    }
    
    /** Closes this, ignoring any checked exceptions. */
    internal fun Socket.closeQuietly() {
      try {
        close()
      } catch (e: AssertionError) {
        throw e
      } catch (rethrown: RuntimeException) {
        if (rethrown.message == "bio == null") {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        assertThat(verifier.verify("\u2121.com", session)).isFalse()
        assertThat(verifier.verify("℡.com", session)).isFalse()
    
        // These should ideally be false, but we know that hostname is usually already checked by us
        assertThat(verifier.verify("\u212A.com", session)).isFalse()
        // Kelvin character below
        assertThat(verifier.verify("K.com", session)).isFalse()
      }
    
      @Test fun specialKInCert() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 40.3K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_2x.md

        cancelation.
     *  Fix: When a network interceptor mutates a request, that change is now
        reflected in `Response.networkResponse()`.
     *  Fix: Badly-behaving caches now throw a checked exception instead of a
        `NullPointerException`.
     *  Fix: Better handling of uncaught exceptions in MockWebServer with HTTP/2.
    
    ## Version 2.3.0
    
    _2015-03-16_
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

                // We've exhausted our current label. Either there are more labels to compare, in which
                // case we expect a dot as the next character. Otherwise, we've checked all our labels.
                if (currentLabelIndex == labels.size - 1) {
                  break
                } else {
                  currentLabelIndex++
                  currentLabelByteIndex = -1
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.7K bytes
    - Viewed (0)
Back to top