- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for assertMutationAllowed (0.41 sec)
-
subprojects/core/src/main/java/org/gradle/api/internal/MutationGuards.java
@Override public boolean isMutationAllowed() { return true; } @Override public void assertMutationAllowed(String methodName, Object target) { // do nothing } @Override public <T> void assertMutationAllowed(String methodName, T target, Class<T> targetType) { // do nothing } }; /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 11 21:58:11 UTC 2018 - 2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/MutationGuard.java
* * @param methodName the method name the assertion is testing * @param target the target object been asserted on */ void assertMutationAllowed(String methodName, Object target); <T> void assertMutationAllowed(String methodName, T target, Class<T> targetType);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 11 21:58:11 UTC 2018 - 2.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/AbstractMutationGuard.java
@Override public void assertMutationAllowed(String methodName, Object target) { if (!isMutationAllowed()) { throw createIllegalStateException(new DslObject(target).getPublicType().getConcreteClass(), methodName, target); } } @Override public <T> void assertMutationAllowed(String methodName, T target, Class<T> targetType) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 11 21:58:11 UTC 2018 - 2.3K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultMutationGuardTest.groovy
action.execute(null) then: noExceptionThrown() callable.noExceptionThrown() callable.called } private void disallowedMethod() { guard.assertMutationAllowed("someProtectedMethod()", target) } protected void ensureExecuted(def callable) { if (callable instanceof Action) { callable.execute(null) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 04 22:26:51 UTC 2021 - 6.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/DefaultDomainObjectCollection.java
} /** * Asserts that the container can be modified in any way by the given method. */ protected final void assertMutable(String methodName) { getMutationGuard().assertMutationAllowed(methodName, this); } /** * Subclasses may override this method to prevent add/remove methods. * * @see DefaultDomainObjectSet */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 15.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/invocation/DefaultGradle.java
removeListener(listener); } private void assertProjectMutatingMethodAllowed(String methodName) { MutationGuards.of(crossProjectConfigurator).assertMutationAllowed(methodName, this, Gradle.class); } @Override public void beforeProject(Closure closure) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 22 05:18:22 UTC 2024 - 23.6K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/project/DefaultProject.java
? null : nextBatch.getSource(); } private void assertMutatingMethodAllowed(String methodName) { MutationGuards.of(getProjectConfigurator()).assertMutationAllowed(methodName, this, Project.class); } @Override public ProjectState getOwner() { return owner; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:34:44 UTC 2024 - 50.2K bytes - Viewed (0)