Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for removeElement (2.18 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategy.java

            Element subprojectsElement = root.child(SUBPROJECTS).orElse(null);
            if (subprojectsElement != null) {
                if (isSubprojectsListRedundant(subprojectsElement, pomPath)) {
                    DomUtils.removeElement(subprojectsElement);
                    context.detail("Removed: redundant subprojects list (matches direct children)");
                    hasChanges = true;
                }
            }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  2. internal/lru/lru.go

    func (c *LRU[K, V]) removeOldest() {
    	if ent := c.evictList.Back(); ent != nil {
    		c.removeElement(ent)
    	}
    }
    
    // removeElement is used to remove a given list element from the cache. Has to be called with lock!
    func (c *LRU[K, V]) removeElement(e *Entry[K, V]) {
    	c.evictList.Remove(e)
    	delete(c.items, e.Key)
    	c.removeFromBucket(e)
    	if c.onEvict != nil {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategy.java

                        }
                    })
                    .toList();
    
            // Remove duplicates while preserving formatting
            duplicates.forEach(DomUtils::removeElement);
    
            return !duplicates.isEmpty();
        }
    
        private String createDependencyKey(Element dependency) {
            String groupId = dependency.childText(MavenPomElements.Elements.GROUP_ID);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 22.2K bytes
    - Viewed (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/DomUtilsTest.java

            Document doc = Document.of(pomXml);
            Element root = doc.root();
            Element nameElement = DomUtils.findChildElement(root, "name");
    
            // Test removing existing element
            DomUtils.removeElement(nameElement);
    
            String xmlOutput = DomUtils.toXml(doc);
            assertFalse(xmlOutput.contains("<name>Test Project</name>"), "Should not contain removed name element");
            assertTrue(
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 31.3K bytes
    - Viewed (0)
Back to top