Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for assertMutableCollectionContents (0.28 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/DefaultDomainObjectCollection.java

        }
    
        @Override
        public boolean add(T toAdd) {
            assertMutable("add(T)");
            assertMutableCollectionContents();
            return doAdd(toAdd, eventRegister.getAddActions());
        }
    
        protected <I extends T> boolean add(I toAdd, Action<? super I> notification) {
            assertMutableCollectionContents();
            return doAdd(toAdd, notification);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/DefaultDomainObjectSet.java

         * The mutation validators used in DefaultConfiguration only expect to be used with add/remove methods and fail when we
         * correctly try to also prevent all/withType/etc mutation methods.
         *
         * assertMutableCollectionContents is only used by add/remove methods, but we should remove this special handling and fix
         * DefaultConfiguration and CompositeDomainObjects.
         */
        public void beforeCollectionChanges(Action<Void> action) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. platforms/software/reporting/src/main/java/org/gradle/api/reporting/internal/DefaultReportContainer.java

                @Override
                public boolean isSatisfiedBy(T element) {
                    return element.getRequired().get();
                }
            });
        }
    
        @Override
        protected void assertMutableCollectionContents() {
            throw new ImmutableViolationException();
        }
    
        @Override
        public NamedDomainObjectSet<T> getEnabled() {
            return enabled;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top