inLineComment = false;
curComment[1] = i;
ret.add(curComment);
curComment = null;
inMultiLineComment = false;
curComment[1] = i;
ret.add(curComment);
curComment = null;
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/parser/kernel/ParserThread.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/parser/kernel/ParserThread.java
|
Method name: int[][] calculateCommentIntervals()
|
|
Method name: int[][] calculateCommentIntervals()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | inLineComment = false;↵ | | 1 | inMultiLineComment = false;↵
|
2 | curComment[1] = i;↵ | | 2 | curComment[1] = i;↵
|
3 | ret.add(curComment);↵ | | 3 | ret.add(curComment);↵
|
4 | curComment = null; | | 4 | curComment = null;
|
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 |
21 | inLineComment = false; | | 13 | inMultiLineComment = false; |
22 | curComment[1] = i; | | 14 | curComment[1] = i; |
23 | ret.add(curComment); | | 15 | ret.add(curComment); |
24 | curComment = null; | | 16 | curComment = null; |
Precondition Violations (1)
Row |
Violation |
1 | Clone fragment #1 returns variables inLineComment, curComment , while Clone fragment #2 returns variables inMultiLineComment, curComment |