File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Manifest.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Manifest.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (rhs == null || rhs.getClass() != getClass()) {↵ | 1 | if (rhs == null || rhs.getClass() != getClass()) {↵ | |
2 | return false;↵ | 2 | return false;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (rhs == this) {↵ | 4 | if (rhs == this) {↵ | |
5 | return true;↵ | 5 | return true;↵ | |
6 | } | 6 |
| |
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.4 |
Clones location | Clones are in the same java file |
Number of node comparisons | 13 |
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) | 0.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (rhs == null || rhs.getClass() != getClass()) |
| 1 | if (rhs == null || rhs.getClass() != getClass()) | |||||||||||
2 | return false; |
| 2 | return false; | |||||||||||
3 | if (rhs == this) | 3 | if (rhs == this) | ||||||||||||
4 | return true; |
| 4 | return true; |
Row | Violation |
---|---|
1 | Type java.lang.Class<> of variable getClass() does not match with type java.lang.Class<> of variable getClass() |
2 | Conditional return false; |
3 | Conditional return false; |
4 | Conditional return true; |
5 | Conditional return true; |