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

hudson.plugins.tasks.util.model.JavaPackage Maven / Gradle / Ivy

Go to download

This plug-in scans the workspace files for open tasks and generates a trend report.

There is a newer version: 4.13
Show newest version
package hudson.plugins.tasks.util.model;



/**
 * A serializable Java Bean class representing a Java package.
 *
 * @author Ulli Hafner
 */
public class JavaPackage extends AnnotationContainer {
    /** Unique identifier of this class. */
    private static final long serialVersionUID = 4034932648975191723L;
    /** Name of this package. */
    private String name; // NOPMD: backward compatibility

    /**
     * Creates a new instance of JavaPackage.
     *
     * @param packageName
     *            the name of this package
     */
    public JavaPackage(final String packageName) {
        super(packageName, Hierarchy.PACKAGE);
    }

    /**
     * Rebuilds the priorities mapping.
     *
     * @return the created object
     */
    private Object readResolve() {
        setHierarchy(Hierarchy.PACKAGE);
        rebuildMappings();
        if (name != null) {
            setName(name);
        }
        return this;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy