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: 6 | Number of AST nodes: 6 | |||
1 | if (currentToken == null)↵ | 1 | if (currentToken == null)↵ | |
2 | throw new REException(getLocalizedMessage("repeat.no.token"),REException.REG_BADRPT,index);↵ | 2 | throw new REException(getLocalizedMessage("repeat.no.token"),REException.REG_BADRPT,newIndex);↵ | |
3 | if (currentToken instanceof RETokenRepeated)↵ | 3 | if (currentToken instanceof RETokenRepeated)↵ | |
4 | ↵ | |||
4 | throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,index);↵ | 5 | throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,newIndex);↵ | |
5 | if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)↵ | 6 | if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)↵ | |
6 | throw new REException(getLocalizedMessage("repeat.assertion"),REException.REG_BADRPT,index); | 7 | throw new REException(getLocalizedMessage("repeat.assertion"),REException.REG_BADRPT,newIndex); | |
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) | 1.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 29 |
Number of mapped statements | 6 |
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) | 84.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
198 | if (currentToken == null) | 35 | if (currentToken == null) | |||||||||||
199 | throw new REException(getLocalizedMessage("repeat.no.token"), REException.REG_BADRPT, index); |
| 36 | throw new REException(getLocalizedMessage("repeat.no.token"), REException.REG_BADRPT, newIndex); | ||||||||||
200 | if (currentToken instanceof RETokenRepeated) | 37 | if (currentToken instanceof RETokenRepeated) | |||||||||||
201 | throw new REException(getLocalizedMessage("repeat.chained"), REException.REG_BADRPT, index); |
| 38 | throw new REException(getLocalizedMessage("repeat.chained"), REException.REG_BADRPT, newIndex); | ||||||||||
202 | if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary) | 39 | if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary) | |||||||||||
203 | throw new REException(getLocalizedMessage("repeat.assertion"), REException.REG_BADRPT, index); |
| 40 | throw new REException(getLocalizedMessage("repeat.assertion"), REException.REG_BADRPT, newIndex); |
Row | Violation |
---|