super.validateConfigured(); if (toplinkDescriptor == null) { throw new BuildException("The toplinkdescriptor attribute must " + "be specified"); }
super.validateAttributes(); if (className == null) { throw new BuildException("The classname attribute must be set"); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicTOPLinkDeploymentTool.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/j2ee/GenericHotDeploymentTool.java
Method name: void validateConfigured() Method name: void validateAttributes()
Number of AST nodes: 3 Number of AST nodes: 3
1
super.validateConfigured();
1
super.validateAttributes();
2
        if (toplinkDescriptor == null) {
2
        if (className == null) {
3
            throw new BuildException("The toplinkdescriptor attribute must "
3
            throw new BuildException("The 
4
                + "be specified");
4
classname attribute must be set");
5
        }
5
        }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.4
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super.validateConfigured();
    1
    super.validateConfigured();
    1
    super.validateAttributes();
    Differences
    Expression1Expression2Difference
    validateConfiguredvalidateAttributesMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression super.validateConfigured() is a void method call, and thus it cannot be parameterized
    Expression super.validateAttributes() is a void method call, and thus it cannot be parameterized
    1
    super.validateAttributes();
    2
    if (toplinkDescriptor == null)
    2
    if (toplinkDescriptor == null)
    2
    if (className == null)
    Differences
    Expression1Expression2Difference
    toplinkDescriptorclassNameVARIABLE_NAME_MISMATCH
    2
    if (className == null)
    3
    throw new BuildException("The toplinkdescriptor attribute must " + "be specified");
    3
    throw new BuildException("The toplinkdescriptor attribute must " + "be specified");
    3
    throw new BuildException("The classname attribute must be set");
    Differences
    Expression1Expression2Difference
    "The toplinkdescriptor attribute must " + "be specified""The classname attribute must be set"TYPE_COMPATIBLE_REPLACEMENT
    3
    throw new BuildException("The classname attribute must be set");
    Precondition Violations (2)
    Row Violation
    1Expression super.validateConfigured() is a void method call, and thus it cannot be parameterized
    2Expression super.validateAttributes() is a void method call, and thus it cannot be parameterized