if (KaffeRmic.COMPILER_NAME.equals(compiler)) { return new KaffeRmic(); } else if (WLRmic.COMPILER_NAME.equals(compiler)) { return new WLRmic(); } else if (ForkingSunRmic.COMPILER_NAME.equals(compiler)) { return new ForkingSunRmic(); } else if (XNewRmic.COMPILER_NAME.equals(compiler)) { return new XNewRmic(); }
return new SunRmic(); } else if (KaffeRmic.COMPILER_NAME.equals(compiler)) { return new KaffeRmic(); } else if (WLRmic.COMPILER_NAME.equals(compiler)) { return new WLRmic(); } else if (ForkingSunRmic.COMPILER_NAME.equals(compiler)) { return new ForkingSunRmic();
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/rmic/RmicAdapterFactory.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/rmic/RmicAdapterFactory.java
Method name: RmicAdapter getRmic(String, Task) Method name: RmicAdapter getRmic(String, Task)
Number of AST nodes: 8 Number of AST nodes: 4
1
return new SunRmic();
1
if (KaffeRmic.COMPILER_NAME.equals(compiler)) {
2
        } else if (KaffeRmic.COMPILER_NAME.equals(compiler)) {
2
            return new KaffeRmic();
3
            return new KaffeRmic();
3
        } else if (WLRmic.COMPILER_NAME.equals(compiler)) {
4
        } else if (WLRmic.COMPILER_NAME.equals(compiler)) {
4
            return new WLRmic();
5
            return new WLRmic();
5
        } else if (ForkingSunRmic.COMPILER_NAME.equals(compiler)) {
6
        } else if (ForkingSunRmic.COMPILER_NAME.equals(compiler)) {
6
            return new ForkingSunRmic();
7
            return new ForkingSunRmic();
7
        } else if (XNewRmic.COMPILER_NAME.equals(compiler)) {
8
            return new XNewRmic();
9
        }
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 the same method
Number of node comparisons0
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements0
    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.0
    Clone typeUnknown type
    Mapped Statements
    ID Statement ID Statement
    Precondition Violations (0)
    Row Violation