File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/FTP.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/jlink/jlink.java | |||
Method name: void AntFTPFile(AntFTPFile, String)
|
Method name: void setOutfile(String)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | currentPathElement = findPathElementCaseUnsensitive(this.curpwd,↵ | |||
2 | currentPathElement);↵ | |||
3 | if (currentPathElement == null) {↵ | 1 | if (outfile == null) {↵ | |
4 | return;↵ | 2 | return;↵ | |
5 | ↵ | 3 | }↵ | |
6 | } | 4 | this.outfile = outfile; | |
See real code fragment | See real code fragment |
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 5 |
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) | 0.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14 | currentPathElement = findPathElementCaseUnsensitive(this.curpwd, currentPathElement); |
| 3 | this.outfile = outfile; | ||||||||||||||
15 | if (currentPathElement == null) |
| 1 | if (outfile == null) | ||||||||||||||
16 | return; |
| 2 | return; |
Row | Violation |
---|---|
1 | Expression this.outfile is a field being modified, and thus it cannot be parameterized |
2 | Conditional return; |
3 | Clone fragment #1 returns variables currentPathElement , while Clone fragment #2 returns variables |