File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java | |||
Method name: boolean doWordWrap(boolean)
|
Method name: boolean doWordWrap(boolean)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | logicalLength++;↵ | 1 | logicalLength++;↵ | |
2 | if(!lastWasSpace &&↵ | 2 | if(!lastWasSpace &&↵ | |
3 | logicalLength <= maxLineLen + 1)↵ | 3 | logicalLength <= maxLineLen)↵ | |
4 | {↵ | 4 | {↵ | |
5 | lastInLine = i;↵ | 5 | lastInLine = i;↵ | |
6 | lastWordOffset = i;↵ | 6 | lastWordOffset = i;↵ | |
7 | lastWasSpace = true;↵ | 7 | lastWasSpace = true;↵ | |
8 | } | 8 |
| |
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.7 |
Clones location | Clones are in the same method |
Number of node comparisons | 19 |
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) | 8.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27 | logicalLength++; | 33 | logicalLength++; | |||||||||||
28 | if (!lastWasSpace && logicalLength <= maxLineLen + 1) |
| 34 | if (!lastWasSpace && logicalLength <= maxLineLen) | ||||||||||
29 | lastInLine = i; | 35 | lastInLine = i; | |||||||||||
30 | lastWordOffset = i; | 36 | lastWordOffset = i; | |||||||||||
31 | lastWasSpace = true; | 37 | lastWasSpace = true; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables logicalLength, lastWasSpace, lastInLine, lastWordOffset , while Clone fragment #2 returns variables logicalLength, lastWasSpace, lastInLine, lastWordOffset |