Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for fromName (0.14 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/PropertyAccessorTypeTest.groovy

        def "deviant bean properties are considered as such by Gradle"() {
            expect:
            PropertyAccessorType.fromName('gettingStarted') == PropertyAccessorType.GET_GETTER
            PropertyAccessorType.of(DeviantBean.class.getMethod("gettingStarted")) == PropertyAccessorType.GET_GETTER
            PropertyAccessorType.fromName('getccCompiler') == PropertyAccessorType.GET_GETTER
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/initialization/MixInLegacyTypesClassLoader.java

                }
                if (((access & Opcodes.ACC_PUBLIC) > 0) && !isStatic(access) && Type.getMethodDescriptor(Type.BOOLEAN_TYPE).equals(desc)) {
                    PropertyAccessorType accessorType = PropertyAccessorType.fromName(name);
                    if (accessorType != null) {
                        String propertyName = accessorType.propertyNameFor(name);
                        if (accessorType == PropertyAccessorType.IS_GETTER) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 17K bytes
    - Viewed (0)
  3. platforms/software/build-init/src/main/java/org/gradle/buildinit/tasks/InitBuild.java

            if (isNullOrEmpty(this.dsl)) {
                dsl = userQuestions.selectOption("Select build script DSL", initializer.getDsls(), initializer.getDefaultDsl());
            } else {
                dsl = BuildInitDsl.fromName(getDsl());
                if (!initializer.getDsls().contains(dsl)) {
                    throw new GradleException("The requested DSL '" + getDsl() + "' is not supported for '" + initializer.getId() + "' build type");
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 10 12:58:10 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/DefaultStructBindingsStore.java

            String methodName = method.getName();
            PropertyAccessorType accessorType = PropertyAccessorType.fromName(methodName);
            if (accessorType != null) {
                switch (accessorType) {
                    case GET_GETTER:
                    case IS_GETTER:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  5. istioctl/pkg/validate/validate_test.go

    apiVersion: v1
    kind: Deployment
    metadata:
      name: helloworld-v1
      labels:
        service.istio.io/canonical-name: helloworld
        service.istio.io/canonical-revision: v1
    spec:
      replicas: 1
    `
    )
    
    func fromYAML(in string) *unstructured.Unstructured {
    	var un unstructured.Unstructured
    	if err := yaml.Unmarshal([]byte(in), &un); err != nil {
    		panic(err)
    	}
    	return &un
    }
    
    func TestValidateResource(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jul 25 08:08:36 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  6. src/mime/multipart/multipart.go

    	err     error // error to return when n == 0
    	readErr error // read error observed from mr.bufReader
    }
    
    // FormName returns the name parameter if p has a Content-Disposition
    // of type "form-data".  Otherwise it returns the empty string.
    func (p *Part) FormName() string {
    	// See https://tools.ietf.org/html/rfc2183 section 2 for EBNF
    	// of Content-Disposition value format.
    	if p.dispositionParams == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/mime/multipart/multipart_test.go

    	}
    	for i, test := range tests {
    		p := &Part{Header: make(map[string][]string)}
    		p.Header.Set("Content-Disposition", test[0])
    		if g, e := p.FormName(), test[1]; g != e {
    			t.Errorf("test %d: FormName() = %q; want %q", i, g, e)
    		}
    		if g, e := p.FileName(), test[2]; g != e {
    			t.Errorf("test %d: FileName() = %q; want %q", i, g, e)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:36:47 UTC 2022
    - 30.4K bytes
    - Viewed (0)
Back to top