Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 421 - 430 of 1,222 for rval (0.05 seconds)

  1. build-logic/jvm/src/main/kotlin/gradlebuild.unittest-and-compile.gradle.kts

        }
    }
    
    internal
    abstract class AddOpensArgumentProvider : CommandLineArgumentProvider {
        @get:Input
        abstract val jvmVersion: Property<Int>
    
        @get:Input
        abstract val unitTest: Property<Boolean>
    
        @get:Input
        abstract val embedded: Property<Boolean>
    
        override fun asArguments(): Iterable<String> =
            JpmsConfiguration.forDaemonProcesses(jvmVersion.get(), true)
    }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Dec 19 06:44:41 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  2. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/JavassistExtensions.kt

    import org.gradle.api.reflect.TypeOf
    import org.gradle.kotlin.dsl.*
    
    
    internal
    val CtClass.isKotlin: Boolean
        get() = hasAnnotation(Metadata::class.qualifiedName)
    
    
    internal
    val CtMethod.isSynthetic
        get() = methodInfo.getAttribute(SyntheticAttribute.tag) != null
    
    
    internal
    val MemberValue.intValue: Int
        get() {
            var value: Int? = null
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 4.6K bytes
    - Click Count (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt

    class DevServer {
      val handshakeCertificates = TlsUtil.localhost()
    
      val server =
        MockWebServer().apply {
          useHttps(handshakeCertificates.sslSocketFactory(), false)
    
          enqueue(
            MockResponse()
              .setResponseCode(HTTP_MOVED_TEMP)
              .setHeader("Location", "https://www.google.com/robots.txt"),
          )
        }
    
      val clientCertificates =
        HandshakeCertificates
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/ParseResponseWithMoshi.kt

    import java.io.IOException
    import okhttp3.OkHttpClient
    import okhttp3.Request
    
    class ParseResponseWithMoshi {
      private val client = OkHttpClient()
      private val moshi = Moshi.Builder().build()
      private val gistJsonAdapter = moshi.adapter(Gist::class.java)
    
      fun run() {
        val request =
          Request
            .Builder()
            .url("https://api.github.com/gists/c2a7c39532239ff261be")
            .build()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/BasicTrustRootIndex.kt

    /** A simple index that of trusted root certificates that have been loaded into memory. */
    class BasicTrustRootIndex(
      vararg caCerts: X509Certificate,
    ) : TrustRootIndex {
      private val subjectToCaCerts: Map<X500Principal, Set<X509Certificate>>
    
      init {
        val map = mutableMapOf<X500Principal, MutableSet<X509Certificate>>()
        for (caCert in caCerts) {
          map.getOrPut(caCert.subjectX500Principal) { mutableSetOf() }.add(caCert)
        }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketWriterTest.kt

    import org.junit.jupiter.api.extension.RegisterExtension
    
    class WebSocketWriterTest {
      private val data = Buffer()
      private val random = Random(0)
    
      /**
       * Check all data as verified inside of the test. We do this in an AfterEachCallback so that
       * exceptions thrown from the test do not cause this check to fail.
       */
      @RegisterExtension
      val noDataLeftBehind =
        AfterEachCallback { context: ExtensionContext ->
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 9.3K bytes
    - Click Count (0)
  7. build-logic/dependency-modules/src/main/kotlin/gradlebuild.dependency-modules.gradle.kts

            resolutionStrategy.capabilitiesResolution.all {
                selectHighestVersion()
            }
        }
    }
    
    fun readCapabilitiesFromJson() {
        val capabilitiesFile = repoRoot().file("gradle/dependency-management/capabilities.json").asFile
        val capabilities: List<CapabilitySpec> = readCapabilities(capabilitiesFile)
        capabilities.forEach {
            it.configure(dependencies.components, configurations)
        }
    }
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Jul 18 11:32:19 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/Interpolator.java

         *
         * @param val The string to be interpolated.
         * @param callback The function to resolve variable values.
         * @return The interpolated string, or null if the input was null.
         */
        @Nullable
        default String interpolate(@Nullable String val, @Nullable UnaryOperator<String> callback) {
            return interpolate(val, callback, false);
        }
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Jan 13 16:14:35 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt

     */
    class RealConnection internal constructor(
      val taskRunner: TaskRunner,
      val connectionPool: RealConnectionPool,
      override val route: Route,
      /** The low-level TCP socket. */
      private val rawSocket: JavaNetSocket,
      /**
       * The application layer socket. Either an [SSLSocket] layered over [rawSocket], or [rawSocket]
       * itself if this connection does not use SSL.
       */
      private val javaNetSocket: JavaNetSocket,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Oct 07 21:55:03 GMT 2025
    - 14.6K bytes
    - Click Count (0)
  10. internal/cachevalue/cache.go

    }
    
    func (t *Cache[T]) update(ctx context.Context) error {
    	val, err := t.updateFn(ctx)
    	if err != nil {
    		if t.opts.ReturnLastGood && t.val.Load() != nil {
    			// Keep last good value, so update
    			// does not return an error.
    			return nil
    		}
    		return err
    	}
    
    	t.val.Store(&val)
    	t.lastUpdateMs.Store(time.Now().UnixMilli())
    	return nil
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri May 24 12:50:46 GMT 2024
    - 4.4K bytes
    - Click Count (0)
Back to Top