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 attribute(String, String, boolean)
|
Method name: void attribute(String, String, boolean)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | lastExcludeMatch = (isSpecified) ? (value.equals("TRUE")) :↵ | 1 | lastAtLineStart = (isSpecified) ? (value.equals("TRUE")) :↵ | |
2 | false;↵ | 2 | false;↵ | |
3 | }↵ | 3 | }↵ | |
4 | else if (aname == "IGNORE_CASE")↵ | 4 | else if (aname == "↵ | |
5 | {↵ | |||
6 | lastIgnoreCase↵ | 5 | AT_WHITESPACE_END")↵ | |
6 | {↵ | |||
7 | = (isSpecified) ? (value.equals("TRUE")) :↵ | 7 | lastAtWhitespaceEnd = (isSpecified) ? (value.equals("TRUE")) :↵ | |
8 | true;↵ | 8 | false;↵ | |
9 | }↵ | 9 | }↵ | |
10 | else if (aname == "HIGHLIGHT_DIGITS")↵ | 10 | else if (aname == "↵ | |
11 | {↵ | |||
12 | lastHighlightDigits↵ | 11 | AT_WORD_START")↵ | |
12 | {↵ | |||
13 | = (isSpecified) ? (value.equals("TRUE")) :↵ | 13 | lastAtWordStart = (isSpecified) ? (value.equals("TRUE")) :↵ | |
14 | false; | 14 |
| |
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 | 1 |
Number of mapped statements | 1 |
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 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23 | lastExcludeMatch = (isSpecified) ? (value.equals("TRUE")) : false; |
| 11 | lastAtLineStart = (isSpecified) ? (value.equals("TRUE")) : false; |
Row | Violation |
---|---|
1 | Expression lastExcludeMatch is a field being modified, and thus it cannot be parameterized |
2 | Expression lastAtLineStart is a field being modified, and thus it cannot be parameterized |