Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 162 for getters (0.54 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/annotations/impl/DefaultTypeAnnotationMetadataStore.java

                // Do we have an 'is'-getter as well as a 'get'-getter?
                if (previouslySeenBuilder != null) {
                    // It is okay to have redundant generated 'is'-getters
                    if (generatedMethodDetector.test(metadataBuilder.getter)) {
                        continue;
                    }
                    // The 'is'-getter is ignored, we can skip it in favor of the 'get'-getter
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:36 UTC 2024
    - 37.6K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/userguide/troubleshooting/validation_problems.adoc

        x.set(123)
    }
    ```
    
    [[redundant_getters]]
    == Redundant getters
    
    This error indicates that a `boolean` property has both a `get` and an `is` getter method.
    This is a problem because both getters can be annotated differently and Gradle cannot know which ones to use.
    
    The solution to this problem is to get rid of one of the getters or to mark one of the getters with link:{javadocPath}/org/gradle/api/tasks/Internal.html[@Internal]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Mar 23 22:37:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  3. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/compilerFacility/AbstractCompilerFacilityTest.kt

                )
            }
        }
    
        /**
         * This class recursively visits all calls of functions and getters, and if the function or the getter used for a call has
         * an annotation whose FqName is [annotationFqName], it runs [handleFunctionWithAnnotation] for the function or the getter.
         */
        private class CheckCallsWithAnnotationVisitor(
            private val annotationFqName: String,
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/internal/reflect/validation/ValidationMessageChecker.groovy

            config.description("has redundant getters: 'get${config.property.capitalize()}()' and 'is${config.property.capitalize()}()'")
                .reason("Boolean property '${config.property}' has both an `is` and a `get` getter")
                .solution("Remove one of the getters")
                .solution("Annotate one of the getters with @Internal")
                .render()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 11:49:03 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/AbstractPluginValidationIntegrationSpec.groovy

                    contextualLabel == 'Type \'MyTask\' property \'badTime\' is private and annotated with @Input'
                    details == 'Annotations on private getters are ignored'
                    solutions == [
                        'Make the getter public',
                        'Annotate the public version of the getter',
                    ]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 40.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics_test.go

    			# TYPE apiserver_storage_size_bytes gauge
    			apiserver_storage_size_bytes{storage_cluster_id="etcd-0"} 1e+09
    			`,
    		},
    		{
    			desc:           "getters not configured",
    			getterOverride: nil,
    			err:            nil,
    			want:           ``,
    		},
    	}
    
    	for _, test := range testCases {
    		t.Run(test.desc, func(t *testing.T) {
    			defer registry.Reset()
    			if test.getterOverride != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 21:15:32 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/properties_providers.adoc

    You can declare a read-only managed nested property by adding an abstract getter method for the property to a type annotated with link:{javadocPath}/org/gradle/api/tasks/Nested.html[`@Nested`].
    The property should not have any setter methods.
    Gradle provides the implementation for the getter method and creates a value for the property.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/external/model/maven/RealisedMavenModuleResolveMetadata.java

                        // instantiated 'derivedVariant' as 'DefaultConfigurationMetadata' which does the rules application
                        // automatically when calling the getters (done in the code below).
                        RealisedConfigurationMetadata derivedVariantMetadata = new RealisedConfigurationMetadata(
                            metadata.getId(),
                            sourceVariant.getName(),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 19 19:13:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/annotations/impl/DefaultTypeAnnotationMetadataStoreTest.groovy

            @Small
            boolean bool
        }
    
        def "can ignore 'is' getter in favor of 'get' getter"() {
            expect:
            assertProperties TypeWithIgnoredIsGetterBooleanProperty, [
                bool: [(TYPE): Small],
            ]
            store.getTypeAnnotationMetadata(TypeWithIgnoredIsGetterBooleanProperty).propertiesAnnotationMetadata[0].getter.name == "getBool"
        }
    
        @SuppressWarnings("unused")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Feb 11 15:31:37 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildIntegrationTest.groovy

                }
            """
    
            when:
            succeeds 'taskWithInputs'
    
            then:
            skipped(':taskWithInputs')
        }
    
        @ToBeImplemented("Private getters should be ignored")
        def "private inputs can be overridden in subclass"() {
            given:
            buildFile << '''
                abstract class MyBaseTask extends DefaultTask {
    
                    @Inject
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top