CPD Results

The following document contains the results of PMD's CPD 5.6.1.

Duplications

File Line
org/polago/deployconf/task/filter/FilterToken.java 100
org/polago/deployconf/task/properties/Property.java 74
    }

    /**
     * Gets the description property value.
     *
     * @return the current value of the description property
     */
    public String getDescription() {
        return description;
    }

    /**
     * Sets the description property.
     *
     * @param description the new property value
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * Gets the value property value.
     *
     * @return the current value of the value property
     */
    public String getValue() {
        return value;
    }

    /**
     * Sets the value property.
     *
     * @param value the new property value
     */
    public void setValue(String value) {
        this.value = value;
    }

    /**
     * Gets the defaultValue property value.
     *
     * @return the current value of the defaultValue property
     */
    public String getDefaultValue() {
        return defaultValue;
    }

    /**
     * Sets the defaultValue property.
     *
     * @param defaultValue the new property value
     */
    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    /**
     * Gets the group property value.
     *
     * @return the current value of the group property
     */
    public String getGroup() {
        return group;
    }

    /**
     * Sets the group property.
     *
     * @param group the new property value
     */
    public void setGroup(String group) {
        this.group = group;
    }

    /**
     * Gets the condition property value.
     *
     * @return the current value of the condition property
     */
    public String getCondition() {
        return condition;
    }

    /**
     * Sets the condition property.
     *
     * @param condition the new property value
     */
    public void setCondition(String condition) {
        this.condition = condition;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        return getName().hashCode();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object other) {
        boolean result = false;

        if (other instanceof FilterToken) {
File Line
org/polago/deployconf/task/filter/FilterTask.java 102
org/polago/deployconf/task/properties/PropertiesTask.java 95
                throw new IllegalStateException("Filter description element does not exists");
            }
            String defaultValue = e.getChildTextTrim(DOM_ELEMENT_DEFAULT);

            String group = e.getAttributeValue(DOM_ATTRIBUTE_GROUP);
            String value = null;

            if (group != null) {
                value = getGroupManager().lookupGroup(group).getProperty(name);
            }

            if (value == null) {
                value = e.getChildTextTrim(DOM_ELEMENT_VALUE);
                if (group != null && value != null) {
                    logger.debug("Populating group {} with value of name {}: {}", group, name, value);
                    getGroupManager().lookupGroup(group).setProperty(name, value);
                }
            }