File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/javah/SunJavah.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/javah/Kaffeh.java | |||
Method name: Commandline setupJavahCommand(Javah)
|
Method name: Commandline setupKaffehCommand(Javah)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | Path bcp = new Path(javah.getProject());↵ | 1 | Path cp = new Path(javah.getProject());↵ | |
2 | if (javah.getBootclasspath() != null) {↵ | 2 | if (javah.getBootclasspath() != null) {↵ | |
3 | bcp.append(javah.getBootclasspath());↵ | 3 | cp.append(javah.getBootclasspath());↵ | |
4 | }↵ | 4 | }↵ | |
5 | bcp = bcp.concatSystemBootClasspath("ignore"); | 5 | cp = cp.concatSystemBootClasspath("ignore"); | |
See real code fragment | See real code fragment |
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 | 6 |
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) | 1.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21 | Path bcp = new Path(javah.getProject()); |
| 9 | Path cp = new Path(javah.getProject()); | |||||||||||||
22 | if (javah.getBootclasspath() != null) | 10 | if (javah.getBootclasspath() != null) | ||||||||||||||
23 | bcp.append(javah.getBootclasspath()); |
| 11 | cp.append(javah.getBootclasspath()); | |||||||||||||
24 | bcp = bcp.concatSystemBootClasspath("ignore"); |
| 12 | cp = cp.concatSystemBootClasspath("ignore"); |
Row | Violation |
---|