File path: /jEdit-4.2/src/org/gjt/sp/jedit/syntax/XModeHandler.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/syntax/XModeHandler.java | |||
Method name: void charData(char[], int, int)
|
Method name: void charData(char[], int, int)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | lastStart = text;↵ | 1 | lastEnd = text;↵ | |
2 | lastStartPosMatch = ((lastAtLineStart ? ParserRule.AT_LINE_START : 0)↵ | 2 | lastEndPosMatch = ((lastAtLineStart ? ParserRule.AT_LINE_START : 0)↵ | |
3 | | (lastAtWhitespaceEnd ? ParserRule.AT_WHITESPACE_END : 0)↵ | 3 | | (lastAtWhitespaceEnd ? ParserRule.AT_WHITESPACE_END : 0)↵ | |
4 | | (lastAtWordStart ? ParserRule.AT_WORD_START : 0));↵ | 4 | | (lastAtWordStart ? ParserRule.AT_WORD_START : 0));↵ | |
5 | lastAtLineStart = false;↵ | 5 | lastAtLineStart = false;↵ | |
6 | lastAtWordStart = false;↵ | 6 | lastAtWordStart = false;↵ | |
7 | lastAtWhitespaceEnd = false; | 7 |
| |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 15 |
Number of mapped statements | 5 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | lastStart = text; |
| 10 | lastEnd = text; | ||||||||||||
5 | lastStartPosMatch = ((lastAtLineStart ? ParserRule.AT_LINE_START : 0) | (lastAtWhitespaceEnd ? ParserRule.AT_WHITESPACE_END : 0) | (lastAtWordStart ? ParserRule.AT_WORD_START : 0)); |
| 11 | lastEndPosMatch = ((lastAtLineStart ? ParserRule.AT_LINE_START : 0) | (lastAtWhitespaceEnd ? ParserRule.AT_WHITESPACE_END : 0) | (lastAtWordStart ? ParserRule.AT_WORD_START : 0)); | ||||||||||||
6 | lastAtLineStart = false; | 12 | lastAtLineStart = false; | |||||||||||||
7 | lastAtWordStart = false; | 13 | lastAtWordStart = false; | |||||||||||||
8 | lastAtWhitespaceEnd = false; | 14 | lastAtWhitespaceEnd = false; |
Row | Violation |
---|---|
1 | Expression lastStart is a field being modified, and thus it cannot be parameterized |
2 | Expression lastEnd is a field being modified, and thus it cannot be parameterized |
3 | Expression lastStartPosMatch is a field being modified, and thus it cannot be parameterized |
4 | Expression lastEndPosMatch is a field being modified, and thus it cannot be parameterized |