Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,942 for When (0.28 sec)

  1. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        // ...and then putIfAbsent. Simulate failure on both
        when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(existing);
    
        // next map.get()
        when(backingMap.get(KEY)).thenReturn(existingZero);
        // since get returned zero, try a replace; that fails due to a simulated race
        when(backingMap.replace(eq(KEY), eq(existingZero), isA(AtomicInteger.class))).thenReturn(false);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

                currentExpression == ifExpression.then || currentExpression == ifExpression.`else`
            } ?: return null
            getExpectedType(ifExpression)?.let { return it }
    
            // if `KtIfExpression` doesn't have an expected type, get the expected type of the current branch from the other branch
            val otherBranch = (if (expression == ifExpression.then) ifExpression.`else` else ifExpression.then) ?: return null
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Mar 26 18:13:17 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtSymbolByFirBuilder.kt

            }
        }
    
        inner class TypeBuilder {
            fun buildKtType(coneType: ConeKotlinType): KtType {
                return when (coneType) {
                    is ConeClassLikeTypeImpl -> {
                        when {
                            coneType.lookupTag.toSymbol(rootSession) == null -> {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Mar 28 09:06:28 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  4. build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy

    === Dead Section Links
    This section doesn't exist: <<missing_section>>
    Also see this one, which is another dead link: <<other_missing_section>>
            """
    
            when:
            run('checkDeadInternalLinks').buildAndFail()
    
            then:
            assertFoundDeadSectionLinks(sampleDoc, "missing_section", "other_missing_section")
        }
    
        def "validates present section links"() {
            given:
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Mon Nov 28 22:01:54 GMT 2022
    - 7.8K bytes
    - Viewed (0)
  5. common-protos/k8s.io/api/resource/v1alpha2/generated.proto

      // Standard object metadata
      // +optional
      optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    
      // Spec describes the desired attributes of a resource that then needs
      // to be allocated. It can only be set once when creating the
      // ResourceClaim.
      optional ResourceClaimSpec spec = 2;
    
      // Status describes whether the resource is available and with which
      // attributes.
      // +optional
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  6. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

        def canAddMetaData() {
            TestDomainObject value = new TestDomainObject('a')
    
            when:
            repository.put('class', value)
    
            then:
            repository.find('class') == value
            repository.get('class') == value
        }
    
        def findReturnsNullForUnknownClass() {
            expect:
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Sat Apr 06 02:21:33 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. build-logic/documentation/src/test/groovy/gradlebuild/docs/UserGuideTransformTaskTest.groovy

            String content = "test\ttest\ttest"
            when:
            def actual = UserGuideTransformTask.normalise(content)
    
            then:
            actual == "test    test    test"
        }
    
        def usesUnixLineEndings() {
            given:
            String content = "test\r\ntest\r\ntest"
            when:
            def actual = UserGuideTransformTask.normalise(content)
    
            then:
            actual == "test\ntest\ntest"
        }
    
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Tue Jul 27 19:28:51 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  8. maven-core/src/site/apt/offline-mode.apt

      Find the control point for m2 using maven-wagon. At this point, inject
      a offline status parameter which is used when retrieving the specific Wagon.
    
      If <<<offline == true>>>:
    
      * If the wagon is not bound to "file://", then ignore the request and print
        a debug message.
    
      * If the wagon is bound to "file://" then:
    
        Retrieve the file or base-url file to be "downloaded".
    
    Plain Text
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 18 00:24:53 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/Service.java

       */
      abstract class Listener {
        /**
         * Called when the service transitions from {@linkplain State#NEW NEW} to {@linkplain
         * State#STARTING STARTING}. This occurs when {@link Service#startAsync} is called the first
         * time.
         */
        public void starting() {}
    
        /**
         * Called when the service transitions from {@linkplain State#STARTING STARTING} to {@linkplain
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 10.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Connection.kt

     *
     * Do not confuse this class with the misnamed `HttpURLConnection`, which isn't so much a connection
     * as a single request/response exchange.
     *
     * ## Modern TLS
     *
     * There are trade-offs when selecting which options to include when negotiating a secure connection
     * to a remote host. Newer TLS options are quite useful:
     *
     *  * Server Name Indication (SNI) enables one IP address to negotiate secure connections for
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.3K bytes
    - Viewed (0)
Back to top