File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (namespace != null ? !namespace.equals(schemaLocation.namespace)↵ | 1 | if (file != null ? !file.equals(schemaLocation.↵ | |
2 | : schemaLocation.namespace != null) {↵ | 2 | file) : schemaLocation.file != null) {↵ | |
3 | return false;↵ | 3 | return false;↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (url != null ? !url.equals(schemaLocation.url)↵ | 5 | if (namespace != null ? !namespace.equals(schemaLocation.namespace)↵ | |
6 | : schemaLocation.url != null) {↵ | 6 | : schemaLocation.namespace != null) {↵ | |
7 | return false;↵ | 7 | return false;↵ | |
8 | } | 8 |
| |
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.8 |
Clones location | Clones are in the same method |
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 | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | if (namespace != null ? !namespace.equals(schemaLocation.namespace) : schemaLocation.namespace != null) | 8 | if (namespace != null ? !namespace.equals(schemaLocation.namespace) : schemaLocation.namespace != null) | ||||||||||||||||||||||||||||||||||||
9 | return false; |
| 9 | return false; | |||||||||||||||||||||||||||||||||||
10 | if (url != null ? !url.equals(schemaLocation.url) : schemaLocation.url != null) |
| 6 | if (file != null ? !file.equals(schemaLocation.file) : schemaLocation.file != null) | |||||||||||||||||||||||||||||||||||
11 | return false; |
| 7 | return false; |
Row | Violation |
---|---|
1 | Type java.lang.String of variable url does not match with type java.io.File of variable file |
2 | Type java.lang.String of variable schemaLocation.url does not match with type java.io.File of variable schemaLocation.file |
3 | Type java.lang.String of variable url does not match with type java.io.File of variable file |
4 | Type java.lang.String of variable schemaLocation.url does not match with type java.io.File of variable schemaLocation.file |
5 | Conditional return false; |
6 | Conditional return false; |
7 | Conditional return false; |
8 | Conditional return false; |