curInterval[1] = i;
_currentLiteralAndCommentIntervals.add(curInterval);
curInterval = null;
inLiteral = false;
curInterval[1] = i;
_currentLiteralAndCommentIntervals.add(curInterval);
curInterval = null;
inSinglLineComment = false;
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: 4
|
|
Number of AST nodes: 4
|
|
1 | curInterval[1] = i;↵ | | 1 | curInterval[1] = i;↵
|
2 | _currentLiteralAndCommentIntervals.add(curInterval);↵ | | 2 | _currentLiteralAndCommentIntervals.add(curInterval);↵
|
3 | curInterval = null;↵ | | 3 | curInterval = null;↵
|
4 | inLiteral = false; | | 4 | inSinglLineComment = false;
|
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 | 17 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 4 |
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 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
44 | curInterval[1] = i; | | 37 | curInterval[1] = i; |
45 | _currentLiteralAndCommentIntervals.add(curInterval); | | 38 | _currentLiteralAndCommentIntervals.add(curInterval); |
46 | curInterval = null; | | 39 | curInterval = null; |
47 | inLiteral = false; | | 40 | inSinglLineComment = false; |
Precondition Violations (1)
Row |
Violation |
1 | Clone fragment #1 returns variables inLiteral, curInterval , while Clone fragment #2 returns variables inSinglLineComment, curInterval |