Path cp = new Path(javah.getProject());
if (javah.getBootclasspath() != null) {
cp.append(javah.getBootclasspath());
}
Path bcp = new Path(javah.getProject());
if (javah.getBootclasspath() != null) {
bcp.append(javah.getBootclasspath());
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/javah/Kaffeh.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/javah/SunJavah.java
|
Method name: Commandline setupKaffehCommand(Javah)
|
|
Method name: Commandline setupJavahCommand(Javah)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | Path cp = new Path(javah.getProject());↵ | | 1 | Path bcp = new Path(javah.getProject());↵
|
2 | if (javah.getBootclasspath() != null) {↵ | | 2 | if (javah.getBootclasspath() != null) {↵
|
3 | cp.append(javah.getBootclasspath());↵ | | 3 | bcp.append(javah.getBootclasspath());↵
|
4 | } | | 4 | }
|
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 |
Number of node comparisons | 5 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 3 |
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) | 1.2 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
9 | Path cp = new Path(javah.getProject()); | | 21 | Path bcp = new Path(javah.getProject()); |
10 | if (javah.getBootclasspath() != null) | | 22 | if (javah.getBootclasspath() != null) |
11 | cp.append(javah.getBootclasspath()); | | 23 | bcp.append(javah.getBootclasspath()); |
Precondition Violations (0)
Row |
Violation |