attributes.log("IIOP has been turned on.", Project.MSG_INFO); cmd.createArgument().setValue("-iiop"); if (attributes.getIiopopts() != null) { attributes.log("IIOP Options: " + attributes.getIiopopts(), Project.MSG_INFO); cmd.createArgument().setValue(attributes.getIiopopts()); }
cmd.createArgument().setValue("-idl"); attributes.log("IDL has been turned on.", Project.MSG_INFO); if (attributes.getIdlopts() != null) { cmd.createArgument().setValue(attributes.getIdlopts()); attributes.log("IDL Options: " + attributes.getIdlopts(), Project.MSG_INFO); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/rmic/DefaultRmicAdapter.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/rmic/DefaultRmicAdapter.java
Method name: Commandline setupRmicCommand(String[]) Method name: Commandline setupRmicCommand(String[])
Number of AST nodes: 5 Number of AST nodes: 5
1
cmd.createArgument().setValue("-idl");
1
attributes.log("IIOP has been turned on.", Project.MSG_INFO);
2
            attributes.log("IDL has been turned on.", Project.MSG_INFO);
3
            if (attributes.getIdlopts() != null) {
2
            cmd.createArgument().setValue("-iiop");
4
                cmd.createArgument().setValue
3
            if (attributes.getIiopopts() != null) {
5
(attributes.getIdlopts());
4
                attributes.log("IIOP Options: " + attributes.getIiopopts(),
6
                attributes.log("IDL Options: " + attributes.getIdlopts(),
5
                               Project.MSG_INFO);
7
                               Project.MSG_INFO);
6
                cmd.createArgument().setValue(attributes.getIiopopts());
7
            }
8
            }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in the same method
Number of node comparisons14
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)2.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    30
    attributes.log("IIOP has been turned on.", Project.MSG_INFO);
    30
    attributes.log("IIOP has been turned on.", Project.MSG_INFO);
    37
    attributes.log("IDL has been turned on.", Project.MSG_INFO);
    Differences
    Expression1Expression2Difference
    "IIOP has been turned on.""IDL has been turned on."LITERAL_VALUE_MISMATCH
    37
    attributes.log("IDL has been turned on.", Project.MSG_INFO);
    31
    cmd.createArgument().setValue("-iiop");
    31
    cmd.createArgument().setValue("-iiop");
    36
    cmd.createArgument().setValue("-idl");
    Differences
    Expression1Expression2Difference
    "-iiop""-idl"LITERAL_VALUE_MISMATCH
    36
    cmd.createArgument().setValue("-idl");
    32
    if (attributes.getIiopopts() != null)
    32
    if (attributes.getIiopopts() != null)
    38
    if (attributes.getIdlopts() != null)
    Differences
    Expression1Expression2Difference
    getIiopoptsgetIdloptsMETHOD_INVOCATION_NAME_MISMATCH
    38
    if (attributes.getIdlopts() != null)
    33
    attributes.log("IIOP Options: " + attributes.getIiopopts(), Project.MSG_INFO);
    33
    attributes.log("IIOP Options: " + attributes.getIiopopts(), Project.MSG_INFO);
    40
    attributes.log("IDL Options: " + attributes.getIdlopts(), Project.MSG_INFO);
    Differences
    Expression1Expression2Difference
    "IIOP Options: ""IDL Options: "LITERAL_VALUE_MISMATCH
    getIiopoptsgetIdloptsMETHOD_INVOCATION_NAME_MISMATCH
    40
    attributes.log("IDL Options: " + attributes.getIdlopts(), Project.MSG_INFO);
    34
    cmd.createArgument().setValue(attributes.getIiopopts());
    34
    cmd.createArgument().setValue(attributes.getIiopopts());
    39
    cmd.createArgument().setValue(attributes.getIdlopts());
    Differences
    Expression1Expression2Difference
    getIiopoptsgetIdloptsMETHOD_INVOCATION_NAME_MISMATCH
    39
    cmd.createArgument().setValue(attributes.getIdlopts());
    Precondition Violations (0)
    Row Violation