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: 5 | Number of AST nodes: 5 | |||
1 | lastAtLineStart = (isSpecified) ? (value.equals("TRUE")) :↵ | 1 | lastNoWordBreak = (isSpecified) ? (value.equals("TRUE")) :↵ | |
2 | false;↵ | 2 | false;↵ | |
3 | }↵ | 3 | }↵ | |
4 | else if (aname == "AT_WHITESPACE_END")↵ | 4 | else if (aname == "↵ | |
5 | {↵ | |||
6 | lastAtWhitespaceEnd↵ | 5 | NO_ESCAPE")↵ | |
6 | {↵ | |||
7 | = (isSpecified) ? (value.equals("TRUE")) :↵ | 7 | lastNoEscape = (isSpecified) ? (value.equals("TRUE")) :↵ | |
8 | false;↵ | 8 | false;↵ | |
9 | }↵ | 9 | }↵ | |
10 | else if (aname == "AT_WORD_START")↵ | 10 | else if (aname == "EXCLUDE_MATCH")↵ | |
11 | {↵ | 11 | {↵ | |
12 | lastAtWordStart = (isSpecified) ? (value.equals("TRUE")) :↵ | 12 | lastExcludeMatch = (isSpecified) ? (value.equals("TRUE")) :↵ | |
13 | false;↵ | 13 | false;↵ | |
14 | }↵ | 14 | }↵ | |
15 | else if (aname == "NO_LINE_BREAK")↵ | 15 | else if (aname == "IGNORE_CASE")↵ | |
16 | {↵ | 16 | {↵ | |
17 | lastNoLineBreak = (isSpecified) ? (value.equals("TRUE")) :↵ | 17 | lastIgnoreCase = (isSpecified) ? (value.equals("TRUE")) :↵ | |
18 | false;↵ | 18 | true;↵ | |
19 | }↵ | 19 | }↵ | |
20 | else if (aname == "NO_WORD_BREAK")↵ | 20 | else if (aname == "↵ | |
21 | {↵ | |||
22 | lastNoWordBreak↵ | 21 | HIGHLIGHT_DIGITS")↵ | |
22 | {↵ | |||
23 | = (isSpecified) ? (value.equals("TRUE")) :↵ | 23 | lastHighlightDigits = (isSpecified) ? (value.equals("TRUE")) :↵ | |
24 | false; | 24 |
| |
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 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11 | lastAtLineStart = (isSpecified) ? (value.equals("TRUE")) : false; |
| 19 | lastNoWordBreak = (isSpecified) ? (value.equals("TRUE")) : false; |
Row | Violation |
---|---|
1 | Expression lastAtLineStart is a field being modified, and thus it cannot be parameterized |
2 | Expression lastNoWordBreak is a field being modified, and thus it cannot be parameterized |