classpath.append(getCompileClasspath());
// Gcj has no option for source-path so we
// will add it to classpath.
if (compileSourcepath != null) {
classpath.append(compileSourcepath);
} else {
classpath.append(src);
}
classpath.append(getCompileClasspath());
// jvc has no option for source-path so we
// will add it to classpath.
if (compileSourcepath != null) {
classpath.append(compileSourcepath);
} else {
classpath.append(src);
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/Gcj.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/Jvc.java
|
Method name: Commandline setupGCJCommand()
|
|
Method name: boolean execute()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | classpath.append(getCompileClasspath());↵ | | 1 | classpath.append(getCompileClasspath());↵
|
|
2 | // Gcj has no option for source-path so we↵ | | 2 | // jvc has no option for source-path so we↵
|
3 | // will add it to classpath.↵ | | 3 | // will add it to classpath.↵
|
4 | if (compileSourcepath != null) {↵ | | 4 | if (compileSourcepath != null) {↵
|
5 | classpath.append(compileSourcepath);↵ | | 5 | classpath.append(compileSourcepath);↵
|
6 | } else {↵ | | 6 | } else {↵
|
7 | classpath.append(src);↵ | | 7 | classpath.append(src);↵
|
8 | } | | 8 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 10 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
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) | 26.5 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
7 | classpath.append(getCompileClasspath()); | | 8 | classpath.append(getCompileClasspath()); |
8 | if (compileSourcepath != null) | | 9 | if (compileSourcepath != null) |
9 | classpath.append(compileSourcepath); | | 10 | classpath.append(compileSourcepath); |
| | | | |
10 | | | 11 | |
Precondition Violations (0)
Row |
Violation |