All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.mojo.versions.report.DisplayDependencyUpdatesReport Maven / Gradle / Ivy

Go to download

Versions Plugin for Maven 2. The Versions Plugin updates the versions of components in the POM.

There is a newer version: 2.1.4
Show newest version
package org.codehaus.mojo.versions.report;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DisplayDependencyUpdatesReport {
    private final Map> updatePerSectionMap = new HashMap>(2);

    public void addUpdate(String section, ArtifactUpdate update){
        if ( !updatePerSectionMap.containsKey(section)){
            updatePerSectionMap.put(section, new ArrayList());
        }
        updatePerSectionMap.get(section).add(update);
    }

    public Map> getUpdatePerSectionMap() {
        return updatePerSectionMap;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy