File path: /jEdit-4.2/src/gnu/regexp/RE.java | File path: /jEdit-4.2/src/gnu/regexp/RE.java | |||
Method name: void initialize(Object, int, RESyntax, int, int)
|
Method name: void initialize(Object, int, RESyntax, int, int)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 4 | |||
1 | if (syntax.get(RESyntax.RE_LOOKAHEAD)) {↵ | 1 | if (syntax.get(RESyntax.RE_LOOKAHEAD)) {↵ | |
2 | pure = true;↵ | 2 | pure = true;↵ | |
3 | negativelh = true;↵ | |||
4 | lookAhead = true;↵ | 3 | lookAhead = true;↵ | |
5 | index += 2;↵ | 4 | index += 2;↵ | |
6 | } | 5 |
| |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 22 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 2.5 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
138 | if (syntax.get(RESyntax.RE_LOOKAHEAD)) | 145 | if (syntax.get(RESyntax.RE_LOOKAHEAD)) | |
139 | pure = true; | 146 | pure = true; | |
140 | negativelh = true; | | ||
141 | lookAhead = true; | 147 | lookAhead = true; | |
142 | index += 2; | 148 | index += 2; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables index, pure, lookAhead , while Clone fragment #2 returns variables index, pure, lookAhead |