Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for oldValue (0.14 sec)

  1. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/PersistentDaemonRegistry.java

                    @Override
                    public DaemonRegistryContent update(DaemonRegistryContent oldValue) {
                        if (oldValue == null) {
                            return oldValue;
                        }
                        oldValue.removeInfo(((InetEndpoint)address).getPort());
                        return oldValue;
                    }
                });
            } finally {
                lock.unlock();
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/testing/TestType.kt

        systemProperties.compute("include.spock.annotation") { _, oldValue ->
            if (oldValue == null) fqcn else "$oldValue,$fqcn"
        }
    }
    
    
    fun Test.excludeSpockAnnotation(fqcn: String) {
        systemProperties.compute("exclude.spock.annotation") { _, oldValue ->
            if (oldValue == null) fqcn else "$oldValue,$fqcn"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/input-tracking/src/main/java/org/gradle/internal/configuration/inputs/AccessTrackingProperties.java

            Object oldValue;
            synchronized (delegate) {
                oldValue = delegate.putIfAbsent(key, value);
            }
            reportAccess(key, oldValue);
            if (oldValue == null) {
                // Properties disallow null values, so it is safe to assume that the map was changed.
                reportChange(key, value);
            }
            return oldValue;
    
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 07:32:51 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

          }
    
          while (true) {
            int oldValue = existingCounter.get();
            if (oldValue != 0) {
              try {
                int newValue = IntMath.checkedAdd(oldValue, occurrences);
                if (existingCounter.compareAndSet(oldValue, newValue)) {
                  // newValue can't == 0, so no need to check & remove
                  return oldValue;
                }
              } catch (ArithmeticException overflow) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/common/equality_test.go

    		}
    		if !reflect.DeepEqual(correlatedObject.OldValue, c.OldValue) {
    			return fmt.Errorf("expected old value %v, got %v", c.OldValue, correlatedObject.OldValue)
    		}
    
    		// Check that the correlated object is considered equal to the expected value
    		if (c.ExpectEqual || reflect.DeepEqual(correlatedObject.Value, correlatedObject.OldValue)) != correlatedObject.CachedDeepEqual() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 21:36:46 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingPropertiesTest.groovy

            when:
            def result = getMapUnderTestToWrite().put(key, newValue)
    
            then:
            result == oldValue
            1 * onAccess.accept(key, oldValue)
            then:
            1 * onChange.accept(key, newValue)
    
            where:
            key          | oldValue        | newValue
            'existing'   | 'existingValue' | 'changed'
            'missingKey' | null            | 'changed'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/AbstractBiMap.java

        // The cast is safe because the callers of this method first check that the key is present.
        V oldValue = uncheckedCastNullableTToT(delegate.remove(key));
        removeFromInverseMap(oldValue);
        return oldValue;
      }
    
      private void removeFromInverseMap(@ParametricNullness V oldValue) {
        inverse.delegate.remove(oldValue);
      }
    
      // Bulk Operations
    
      @Override
      public void putAll(Map<? extends K, ? extends V> map) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

          while (true) {
            long oldValue = atomic.get();
            if (oldValue == 0L) {
              // don't compareAndSet a zero
              if (map.replace(key, atomic, new AtomicLong(delta))) {
                return 0L;
              }
              // atomic replaced
              continue outer;
            }
    
            long newValue = oldValue + delta;
            if (atomic.compareAndSet(oldValue, newValue)) {
              return oldValue;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/internal/classpath/DefaultInstrumentedClosuresTracker.java

            currentClosuresEntries.computeInt(thisClosure, (key, oldValue) -> {
                if (oldValue == null) {
                    throw new IllegalStateException("leaveClosure called with an untracked instance");
                } else {
                    if (oldValue == 1) {
                        return null;
                    } else {
                        return oldValue - 1;
                    }
                }
            });
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 24 15:58:00 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/common/equality.go

    	}
    
    	defer func() {
    		r.comparisonResult = &res
    	}()
    
    	if r.Value == nil && r.OldValue == nil {
    		return true
    	} else if r.Value == nil || r.OldValue == nil {
    		return false
    	}
    
    	oldAsArray, oldIsArray := r.OldValue.([]interface{})
    	newAsArray, newIsArray := r.Value.([]interface{})
    
    	oldAsMap, oldIsMap := r.OldValue.(map[string]interface{})
    	newAsMap, newIsMap := r.Value.(map[string]interface{})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 21:53:21 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top