Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for newBar (0.16 sec)

  1. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/plugins/PluginBuildsIntegrationTest.groovy

                }
                dependencies {
                    implementation("${build.group}:${build.buildName}")
                }
            """
            file("src/main/java/Foo.java") << """
                class Foo { Bar newBar() { return new Bar(); }}
            """
    
            then:
            succeeds("build")
            executed(":${build.buildName}:compileJava")
            executed(":compileJava")
            build.assertProjectPluginApplied()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 06 08:15:28 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  2. test/escape2.go

    	*xxx = &y
    }
    
    func foo19(y int) {
    	**xxx = y
    }
    
    type Bar struct {
    	i  int
    	ii *int
    }
    
    func NewBar() *Bar {
    	return &Bar{42, nil} // ERROR "&Bar{...} escapes to heap$"
    }
    
    func NewBarp(x *int) *Bar { // ERROR "leaking param: x$"
    	return &Bar{42, x} // ERROR "&Bar{...} escapes to heap$"
    }
    
    func NewBarp2(x *int) *Bar { // ERROR "x does not escape$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  3. test/escape2n.go

    	*xxx = &y
    }
    
    func foo19(y int) {
    	**xxx = y
    }
    
    type Bar struct {
    	i  int
    	ii *int
    }
    
    func NewBar() *Bar {
    	return &Bar{42, nil} // ERROR "&Bar{...} escapes to heap$"
    }
    
    func NewBarp(x *int) *Bar { // ERROR "leaking param: x$"
    	return &Bar{42, x} // ERROR "&Bar{...} escapes to heap$"
    }
    
    func NewBarp2(x *int) *Bar { // ERROR "x does not escape$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  4. pkg/apis/certificates/v1beta1/defaults_test.go

    		"defaults for kubelet-serving": {
    			req:    newCSR(kubeletServerPEMOptions),
    			usages: kubeletServerUsages,
    			exp:    true,
    		},
    		"defaults without key encipherment for kubelet-serving": {
    			req:    newCSR(kubeletServerPEMOptions),
    			usages: kubeletServerUsagesNoRSA,
    			exp:    true,
    		},
    		"does not default to kube-apiserver-client-kubelet if org is not 'system:nodes'": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 27 08:04:25 UTC 2022
    - 16.9K bytes
    - Viewed (0)
  5. pkg/registry/certificates/certificates/strategy.go

    	newCSR := obj.(*certificates.CertificateSigningRequest)
    	oldCSR := old.(*certificates.CertificateSigningRequest)
    
    	populateConditionTimestamps(newCSR, oldCSR)
    	newConditions := newCSR.Status.Conditions
    
    	// Updating the approval should only update the conditions.
    	newCSR.Spec = oldCSR.Spec
    	newCSR.Status = oldCSR.Status
    	newCSR.Status.Conditions = newConditions
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 21:41:43 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  6. src/runtime/slice.go

    		// gives a smooth-ish transition between the two.
    		newcap += (newcap + 3*threshold) >> 2
    
    		// We need to check `newcap >= newLen` and whether `newcap` overflowed.
    		// newLen is guaranteed to be larger than zero, hence
    		// when newcap overflows then `uint(newcap) > uint(newLen)`.
    		// This allows to check for both with the same comparison.
    		if uint(newcap) >= uint(newLen) {
    			break
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            checkState(newMap instanceof MapMakerInternalMap);
            newMap.putAll(map);
            return newMap;
          }
        },
        MapMakerWeakKeysStrongValues {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            ConcurrentMap<K, V> newMap = new MapMaker().weakKeys().makeMap();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Mar 04 04:06:35 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/common/values.go

    			return types.NullValue
    		}
    		return types.NewErr("invalid data, got null for schema with nullable=false")
    	}
    	if schema.IsXIntOrString() {
    		switch v := unstructured.(type) {
    		case string:
    			return types.String(v)
    		case int:
    			return types.Int(v)
    		case int32:
    			return types.Int(v)
    		case int64:
    			return types.Int(v)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:30:17 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  9. pkg/apis/certificates/validation/validation.go

    }
    
    func ValidateCertificateSigningRequestUpdate(newCSR, oldCSR *certificates.CertificateSigningRequest) field.ErrorList {
    	opts := getValidationOptions(newCSR, oldCSR)
    	return validateCertificateSigningRequestUpdate(newCSR, oldCSR, opts)
    }
    
    func ValidateCertificateSigningRequestStatusUpdate(newCSR, oldCSR *certificates.CertificateSigningRequest) field.ErrorList {
    	opts := getValidationOptions(newCSR, oldCSR)
    	opts.allowSettingCertificate = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  10. src/runtime/mspanset.go

    		if top < spineLen {
    			unlock(&b.spineLock)
    			goto retry
    		}
    
    		spine := b.spine.Load()
    		if spineLen == b.spineCap {
    			// Grow the spine.
    			newCap := b.spineCap * 2
    			if newCap == 0 {
    				newCap = spanSetInitSpineCap
    			}
    			newSpine := persistentalloc(newCap*goarch.PtrSize, cpu.CacheLineSize, &memstats.gcMiscSys)
    			if b.spineCap != 0 {
    				// Blocks are allocated off-heap, so
    				// no write barriers.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top