Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 106 for getOther (0.29 sec)

  1. platforms/core-runtime/internal-instrumentation-processor/src/test/groovy/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeCodeGenTest.groovy

            assertThat(compilation).generatedSourceFile("${GENERATED_CLASSES_PACKAGE_NAME}.Task_Adapter")
        }
    
        def "should fail if @ReplacesEagerProperty is not a simple getter"() {
            given:
            def givenSource = source """
                package org.gradle.test;
    
                import org.gradle.api.provider.Property;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 08:40:36 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. subprojects/core-api/src/main/java/org/gradle/api/tasks/Destroys.java

    import java.lang.annotation.Target;
    
    /**
     * <p>Marks a property as specifying a file or directory that a task destroys.
     * The file or directory belongs to another task.</p>
     *
     * <p>This annotation should be attached to the getter method or the field for the property.</p>
     *
     * <p>This will cause the task to have exclusive access to this file or directory while running.  This means
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 03:14:53 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy

            when:
            def unpackedValue = getter(property, getter, someOtherValue())
    
            then:
            unpackedValue == someValue()
            1 * sideEffect.execute(someValue())
            0 * _
    
            where:
            setter  | getter
            "set"   | "get"
            "set"   | "getOrNull"
            "set"   | "getOrElse"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 87.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeAnnotatedMethodReader.java

                return Collections.singletonList(new InvalidRequest(String.format("Method '%s.%s' annotated with @ReplacesEagerProperty should be a simple getter: name should start with 'get' and method should not have any parameters.", method.getEnclosingElement(), method)));
            }
    
            try {
                AnnotationMirror annotationMirror = annotation.get();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:40 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/TestReport.java

    import java.util.LinkedList;
    import java.util.List;
    
    import static org.gradle.internal.concurrent.CompositeStoppable.stoppable;
    import static org.gradle.internal.instrumentation.api.annotations.ReplacedAccessor.AccessorType.GETTER;
    import static org.gradle.internal.instrumentation.api.annotations.ReplacedAccessor.AccessorType.SETTER;
    import static org.gradle.internal.instrumentation.api.annotations.ReplacesEagerProperty.BinaryCompatibility.ACCESSORS_KEPT;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 08:40:36 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. pkg/test/framework/components/echo/common/deployment/echos.go

    	// Ignored if Namespaces is non-empty. Defaults to 1.
    	NamespaceCount int
    
    	// Namespaces is the user-provided list of echo namespaces. If empty, NamespaceCount
    	// namespaces will be generated.
    	Namespaces []namespace.Getter
    
    	// NoExternalNamespace if true, no external namespace will be generated and no external echo
    	// instance will be deployed. Ignored if ExternalNamespace is non-nil.
    	NoExternalNamespace bool
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 20 16:01:31 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

            0 * _
    
            when:
            unpackedValue = getter(property, getter, ["yet another key": "yet another value"])
            then:
            unpackedValue == expectedUnpackedValue
            1 * sideEffect1.execute("some value")
            then: // ensure ordering
            1 * sideEffect2.execute("other value")
            0 * _
    
            where:
            getter      | _
            "get"       | _
            "getOrNull" | _
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 58.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/schemaBuildingUtils.kt

            else -> false
        }
    
    
    val KCallable<*>.annotationsWithGetters: List<Annotation>
        get() = this.annotations + if (this is KProperty) this.getter.annotations else emptyList()
    
    
    fun KType.toDataTypeRefOrError() =
        toDataTypeRef() ?: error("failed to convert type $this to data type")
    
    
    private
    fun KType.toDataTypeRef(): DataTypeRef? = when {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryIntegrationTest.groovy

            failure.assertHasCause("Cannot have abstract method Thing.getProp().")
        }
    
        def "services are injected into instances using constructor or getter"() {
            buildFile """
                class Thing1 {
                    final Property<String> name
    
                    @javax.inject.Inject
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 07 02:25:12 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/InterceptScope.java

            return new NamedMemberScope(CallType.METHOD, methodName);
        }
    
        /**
         * The returned scope includes reads of all properties named {@code propertyName}.
         * This scope doesn't include calls to the getter method corresponding to this property,
         * use additional explicit {@link #methodsNamed(String)} scope to intercept that.
         *
         * @param propertyName the name of the property to intercept reads of
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 14:02:30 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top