- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for implicitFinalizeValue (0.8 sec)
-
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy
then: 1 * function.call() >> someValue() 0 * _ when: property.finalizeValue() property.implicitFinalizeValue() property.implicitFinalizeValue() property.disallowChanges() then: 0 * _ } def "can finalize after changes disallowed"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 87.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/HasConfigurableValueInternal.java
* Implementations may then fail on subsequent changes, or generate a deprecation warning and ignore changes. */ void implicitFinalizeValue();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/properties/StaticValueTest.groovy
when: value.attachProducer(task) then: 1 * property.attachProducer(task) when: value.maybeFinalizeValue() then: 1 * property.implicitFinalizeValue() } def "creates value for null value"() { expect: def value = StaticValue.of(null) value.call() == null value.taskDependencies == TaskDependencyContainer.EMPTY
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.4K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 18 17:09:50 UTC 2024 - 53K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/StaticValue.java
} } @Override public void maybeFinalizeValue() { if (value instanceof HasConfigurableValue) { ((HasConfigurableValueInternal) value).implicitFinalizeValue(); } } @Nullable @Override public Object call() { return value; } @Override public String toString() { return "Static: " + value;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/bean/DefaultPropertyWalker.java
@Override public void maybeFinalizeValue() { if (isConfigurable()) { Object value = cachedInvoker.get(); ((HasConfigurableValueInternal) value).implicitFinalizeValue(); } } private boolean isProvider() { return Provider.class.isAssignableFrom(declaredType); } private boolean isConfigurable() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 8.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy
} def "cannot set to empty map after value finalized implicitly"() { given: property.set(someValue()) property.implicitFinalizeValue() when: property.empty() then: def e = thrown IllegalStateException e.message == 'The value for this property cannot be changed any further.' }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 58.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractProperty.java
state.disallowChanges(); } @Override public void finalizeValueOnRead() { state.finalizeOnNextGet(); } @Override public void implicitFinalizeValue() { state.disallowChangesAndFinalizeOnNextGet(); } @Override public void disallowUnsafeRead() { state.disallowUnsafeRead(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:54 UTC 2024 - 15.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy
} def "cannot set to empty list after value finalized implicitly"() { given: def property = property() property.set(someValue()) property.implicitFinalizeValue() when: property.empty() then: def e = thrown(IllegalStateException) e.message == 'The value for this property cannot be changed any further.' }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 49.7K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollection.java
valueState.disallowChanges(); } @Override public void finalizeValueOnRead() { valueState.finalizeOnNextGet(); } @Override public void implicitFinalizeValue() { // Property prevents reads *and* mutations, // however CFCs only want automatic finalization on query, // so we do not #disallowChanges(). valueState.finalizeOnNextGet(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 16:06:55 UTC 2024 - 30.2K bytes - Viewed (0)