File path: /apache-ant-1.7.0/src/org/apache/tools/ant/filters/FixCrLfFilter.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/filters/FixCrLfFilter.java | |||
Method name: CrLf resolve()
|
Method name: CrLf resolve()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | return ASIS;↵ | |||
2 | }↵ | |||
3 | if (this.equals(CR) || this.equals(MAC)) {↵ | |||
4 | return CR;↵ | 1 | return CR;↵ | |
5 | }↵ | 2 | }↵ | |
6 | if (this.equals(CRLF) || this.equals(DOS)) {↵ | 3 | if (this.equals(CRLF) || this.equals(DOS)) {↵ | |
7 | return CRLF;↵ | 4 | return CRLF;↵ | |
8 | } | 5 | }↵ | |
6 | if (this.equals(LF) || this.equals(UNIX)) {↵ | |||
7 | return LF;↵ | |||
8 |
| |||
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.5 |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (this.equals(CR) || this.equals(MAC)) |
| 5 | if (this.equals(CRLF) || this.equals(DOS)) | |||||||||||||
4 | return CR; |
| 6 | return CRLF; | |||||||||||||
5 | if (this.equals(CRLF) || this.equals(DOS)) |
| 7 | if (this.equals(LF) || this.equals(UNIX)) | |||||||||||||
6 | return CRLF; |
| 8 | return LF; |
Row | Violation |
---|