Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readFieldOrNull (0.05 sec)

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

      }
    
      // Didn't find the field we wanted. As a last gasp attempt,
      // try to find the value on a delegate.
      if (fieldName != "delegate") {
        val delegate = readFieldOrNull(instance, Any::class.java, "delegate")
        if (delegate != null) return readFieldOrNull(delegate, fieldType, fieldName)
      }
    
      return null
    }
    
    @JvmField
    internal val assertionsEnabled: Boolean = OkHttpClient::class.java.desiredAssertionStatus()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt

          // Oracle JDK. Note that we don't support HTTP/2 or other nice features on Robolectric.
          val sslContextClass = Class.forName("sun.security.ssl.SSLContextImpl")
          val context = readFieldOrNull(sslSocketFactory, sslContextClass, "context") ?: return null
          readFieldOrNull(context, X509TrustManager::class.java, "trustManager")
        } catch (e: ClassNotFoundException) {
          null
        } catch (e: RuntimeException) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top