setProject(owner.getProject()); setOwningTarget(owner.getOwningTarget()); setTaskName(owner.getTaskName()); setDescription(owner.getDescription()); setLocation(owner.getLocation()); setTaskType(owner.getTaskType());
command.addArgument(getRemoveIntChecksParameter()); command.addArgument(getImportsParameter()); command.addArgument(getOptionExplicitParameter()); command.addArgument(getOptionStrictParameter()); command.addArgument(getRootNamespaceParameter()); command.addArgument(getOptionCompareParameter());
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/Task.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/VisualBasicCompile.java
Method name: void bindToOwner(Task) Method name: void addCompilerSpecificOptions(NetCommand)
Number of AST nodes: 6 Number of AST nodes: 6
1
setProject(owner.getProject());
2
        setOwningTarget(owner.getOwningTarget());
3
        setTaskName(owner.getTaskName());
4
        setDescription(owner.getDescription());
5
        setLocation(owner.getLocation());
6
        setTaskType(owner.getTaskType
1
command.addArgument(getRemoveIntChecksParameter());
2
        command.addArgument(getImportsParameter());
3
        command.addArgument(getOptionExplicitParameter());
4
        command.addArgument(getOptionStrictParameter());
5
        command.addArgument(getRootNamespaceParameter());
7
());
6
        command.addArgument(getOptionCompareParameter());
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons36
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment3
    Number of unmapped statements in the second code fragment3
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                                                                                                                
    1
    command.addArgument(getRemoveIntChecksParameter());
    1
    setProject(owner.getProject());
                                                                        
                                                                                                
    2
    command.addArgument(getImportsParameter());
    2
    setOwningTarget(owner.getOwningTarget());
                                                                                            
    3
    setTaskName(owner.getTaskName());
    3
    setTaskName(owner.getTaskName());
    3
    command.addArgument(getOptionExplicitParameter());
    Differences
    Expression1Expression2Difference
    setTaskNameaddArgumentMETHOD_INVOCATION_NAME_MISMATCH
    getTaskNamegetOptionExplicitParameterMETHOD_INVOCATION_NAME_MISMATCH
    ownerMISSING_METHOD_INVOCATION_EXPRESSION
    commandMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression setTaskName(owner.getTaskName()) is a void method call, and thus it cannot be parameterized
    Expression command.addArgument(getOptionExplicitParameter()) is a void method call, and thus it cannot be parameterized
    Expression setTaskName(owner.getTaskName()) is a void method call, and thus it cannot be parameterized
    Expression command.addArgument(getOptionExplicitParameter()) is a void method call, and thus it cannot be parameterized
    3
    command.addArgument(getOptionExplicitParameter());
    4
    setDescription(owner.getDescription());
    4
    setDescription(owner.getDescription());
    4
    command.addArgument(getOptionStrictParameter());
    Differences
    Expression1Expression2Difference
    setDescriptionaddArgumentMETHOD_INVOCATION_NAME_MISMATCH
    getDescriptiongetOptionStrictParameterMETHOD_INVOCATION_NAME_MISMATCH
    ownerMISSING_METHOD_INVOCATION_EXPRESSION
    commandMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression command.addArgument(getOptionStrictParameter()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression setDescription(owner.getDescription()) is a void method call, and thus it cannot be parameterized
    Expression command.addArgument(getOptionStrictParameter()) is a void method call, and thus it cannot be parameterized
    Expression command.addArgument(getOptionStrictParameter()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression setDescription(owner.getDescription()) is a void method call, and thus it cannot be parameterized
    Expression command.addArgument(getOptionStrictParameter()) is a void method call, and thus it cannot be parameterized
    4
    command.addArgument(getOptionStrictParameter());
                                                                                                            
    5
    command.addArgument(getRootNamespaceParameter());
    Preondition Violations
    Unmatched statement command.addArgument(getRootNamespaceParameter()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    5
    command.addArgument(getRootNamespaceParameter());
    5
    setLocation(owner.getLocation());
                                                                            
    6
    setTaskType(owner.getTaskType());
    6
    setTaskType(owner.getTaskType());
    6
    command.addArgument(getOptionCompareParameter());
    Differences
    Expression1Expression2Difference
    setTaskTypeaddArgumentMETHOD_INVOCATION_NAME_MISMATCH
    getTaskTypegetOptionCompareParameterMETHOD_INVOCATION_NAME_MISMATCH
    ownerMISSING_METHOD_INVOCATION_EXPRESSION
    commandMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression setTaskType(owner.getTaskType()) is a void method call, and thus it cannot be parameterized
    Expression command.addArgument(getOptionCompareParameter()) is a void method call, and thus it cannot be parameterized
    Expression setTaskType(owner.getTaskType()) is a void method call, and thus it cannot be parameterized
    Expression command.addArgument(getOptionCompareParameter()) is a void method call, and thus it cannot be parameterized
    6
    command.addArgument(getOptionCompareParameter());
    Precondition Violations (15)
    Row Violation
    1Expression setTaskName(owner.getTaskName()) is a void method call, and thus it cannot be parameterized
    2Expression command.addArgument(getOptionExplicitParameter()) is a void method call, and thus it cannot be parameterized
    3Expression setTaskName(owner.getTaskName()) is a void method call, and thus it cannot be parameterized
    4Expression command.addArgument(getOptionExplicitParameter()) is a void method call, and thus it cannot be parameterized
    5Expression command.addArgument(getOptionStrictParameter()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression setDescription(owner.getDescription()) is a void method call, and thus it cannot be parameterized
    7Expression command.addArgument(getOptionStrictParameter()) is a void method call, and thus it cannot be parameterized
    8Expression command.addArgument(getOptionStrictParameter()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression setDescription(owner.getDescription()) is a void method call, and thus it cannot be parameterized
    10Expression command.addArgument(getOptionStrictParameter()) is a void method call, and thus it cannot be parameterized
    11Unmatched statement command.addArgument(getRootNamespaceParameter()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    12Expression setTaskType(owner.getTaskType()) is a void method call, and thus it cannot be parameterized
    13Expression command.addArgument(getOptionCompareParameter()) is a void method call, and thus it cannot be parameterized
    14Expression setTaskType(owner.getTaskType()) is a void method call, and thus it cannot be parameterized
    15Expression command.addArgument(getOptionCompareParameter()) is a void method call, and thus it cannot be parameterized