- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for implicitFinalizeValue (0.39 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/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)