curInterval = new int[2];
curInterval[0] = i;
curInterval[1] = docLen;
inMultiLineComment = true;
++i;
continue;
curInterval = new int[2];
curInterval[0] = i;
curInterval[1] = docLen;
inLiteral = true;
continue;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/oster/OsterTextControl.java
|
|
File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/oster/OsterTextControl.java
|
Method name: void reinitLiteralAndCommentIntervals()
|
|
Method name: void reinitLiteralAndCommentIntervals()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 5
|
|
1 | curInterval = new int[2];↵ | | 1 | curInterval = new int[2];↵
|
2 | curInterval[0] = i;↵ | | 2 | curInterval[0] = i;↵
|
3 | curInterval[1] = docLen;↵ | | 3 | curInterval[1] = docLen;↵
|
4 | inMultiLineComment = true;↵ | | 4 | in↵
|
5 | ++i;↵ | | 5 | Literal = true;↵
|
6 | continue; | | 6 | continue;
|
See real code fragment |
|
See real code fragment |
Summary
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 | 31 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
11 | curInterval = new int[2]; | | 25 | curInterval = new int[2]; |
12 | curInterval[0] = i; | | 26 | curInterval[0] = i; |
13 | curInterval[1] = docLen; | | 27 | curInterval[1] = docLen; |
14 | inMultiLineComment = true; | | 28 | inLiteral = true; |
15 | ++i; | | | |
16 | continue; | | 29 | continue; |
Precondition Violations (3)
Row |
Violation |
1 | Unmatched statement ++i; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Statement continue; without innermost loop |
3 | Statement continue; without innermost loop |