return new SunRmic();
} else if (KaffeRmic.COMPILER_NAME.equals(compiler)) {
return new KaffeRmic();
} else if (WLRmic.COMPILER_NAME.equals(compiler)) {
return new WLRmic();
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();
}
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: 3
|
|
Number of AST nodes: 6
|
|
| | | 1 | if (WLRmic.COMPILER_NAME.equals(compiler)) {↵
|
1 | return new SunRmic();↵ | | 2 | return new WLRmic();↵
|
2 | } else if (KaffeRmic.COMPILER_NAME.equals(compiler)) {↵ | | 3 | } else if (ForkingSunRmic.COMPILER_NAME.equals(compiler)) {↵
|
3 | return new KaffeRmic();↵ | | 4 | return new ForkingSunRmic();↵
|
4 | } else if (WLRmic.COMPILER_NAME.equals(compiler)) {↵ | | 5 | } else if (XNewRmic.COMPILER_NAME.equals(compiler)) {↵
|
5 | return new WLRmic(); | | 6 | return new XNewRmic();↵
|
| | | 7 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 0 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |