Foundation

CPD Results

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

Duplications

FileLine
org/apache/myfaces/custom/effect/EffectBlindDownClientBehaviorRenderer.java61
org/apache/myfaces/custom/effect/EffectSlideDownClientBehaviorRenderer.java60
        sb.append("new Effect.SlideUp('");
        sb.append(clientId);
        sb.append("'");
        if (effectBehavior.getScaleX() != null || effectBehavior.getScaleY() != null ||
            effectBehavior.getScaleMode() != null || effectBehavior.getScaleFromCenter() != null || effectBehavior.getScaleContent() != null ||
            effectBehavior.getScaleFrom() != null || effectBehavior.getScaleTo() != null || effectBehavior.getDuration() != null)
        {
            sb.append(",{");
            boolean addComma = false;
            addComma = EffectUtils.addProperty(sb, "scaleX", effectBehavior.getScaleX(), addComma);
            addComma = EffectUtils.addProperty(sb, "scaleY", effectBehavior.getScaleY(), addComma);
            addComma = EffectUtils.addStringProperty(sb, "scaleMode", effectBehavior.getScaleMode(), addComma);
            addComma = EffectUtils.addProperty(sb, "scaleFromCenter", effectBehavior.getScaleFromCenter(), addComma);
            addComma = EffectUtils.addProperty(sb, "scaleContent", effectBehavior.getScaleContent(), addComma);
            addComma = EffectUtils.addProperty(sb, "scaleFrom", effectBehavior.getScaleFrom(), addComma);
            addComma = EffectUtils.addProperty(sb, "scaleTo", effectBehavior.getScaleTo(), addComma);
            addComma = EffectUtils.addProperty(sb, "duration", effectBehavior.getDuration(), addComma);
            sb.append('}');
        }
        sb.append(')');
        
        if (effectBehavior.getAppendJs() != null && effectBehavior.getAppendJs().length() > 0)
        {
            sb.append(';');
            sb.append(effectBehavior.getAppendJs());
        }

        return sb.toString();
    }
}
FileLine
org/apache/myfaces/custom/effect/EffectAppearClientBehaviorRenderer.java60
org/apache/myfaces/custom/effect/EffectFadeClientBehaviorRenderer.java60
        sb.append("new Effect.Puff('");
        sb.append(clientId);
        sb.append("'");
        if (effectBehavior.getFrom() != null || effectBehavior.getTo() != null || effectBehavior.getDuration() != null)
        {
            sb.append(",{");
            boolean addComma = false;
            addComma = EffectUtils.addProperty(sb, "duration", effectBehavior.getDuration(), addComma);
            addComma = EffectUtils.addProperty(sb, "from", effectBehavior.getFrom(), addComma);
            addComma = EffectUtils.addProperty(sb, "to", effectBehavior.getTo(), addComma);
            
            sb.append('}');
        }
        sb.append(')');
        
        if (effectBehavior.getAppendJs() != null && effectBehavior.getAppendJs().length() > 0)
        {
            sb.append(';');
            sb.append(effectBehavior.getAppendJs());
        }

        return sb.toString();
    }
    
}
FileLine
org/apache/myfaces/custom/effect/EffectGrowClientBehaviorRenderer.java60
org/apache/myfaces/custom/effect/EffectShrinkClientBehaviorRenderer.java60
        sb.append("new Effect.Shrink('");
        sb.append(clientId);
        sb.append("'");
        if (effectBehavior.getDirection() != null || effectBehavior.getDuration() != null)
        {
            sb.append(",{");
            boolean addComma = false;
            addComma = EffectUtils.addProperty(sb, "duration", effectBehavior.getDuration(), addComma);
            addComma = EffectUtils.addStringProperty(sb, "direction", effectBehavior.getDirection(), addComma);
            
            sb.append('}');
        }
        sb.append(')');
        
        if (effectBehavior.getAppendJs() != null && effectBehavior.getAppendJs().length() > 0)
        {
            sb.append(';');
            sb.append(effectBehavior.getAppendJs());
        }

        return sb.toString();
    }
    
}
FileLine
org/apache/myfaces/custom/effect/EffectBlindDownClientBehaviorRenderer.java66
org/apache/myfaces/custom/effect/EffectScaleClientBehaviorRenderer.java70
            effectBehavior.getScaleFrom() != null )
        {
            sb.append(",{");
            boolean addComma = false;
            addComma = EffectUtils.addProperty(sb, "scaleX", effectBehavior.getScaleX(), addComma);
            addComma = EffectUtils.addProperty(sb, "scaleY", effectBehavior.getScaleY(), addComma);
            addComma = EffectUtils.addStringProperty(sb, "scaleMode", effectBehavior.getScaleMode(), addComma);
            addComma = EffectUtils.addProperty(sb, "scaleFromCenter", effectBehavior.getScaleFromCenter(), addComma);
            addComma = EffectUtils.addProperty(sb, "scaleContent", effectBehavior.getScaleContent(), addComma);
            addComma = EffectUtils.addProperty(sb, "scaleFrom", effectBehavior.getScaleFrom(), addComma);