isInComment = false;
isABracket = false;
isASlash = false;
_pressed = false;
_dragged = false;
return;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/i18n/src/net/sourceforge/squirrel_sql/plugins/i18n/DevelopersController.java
|
|
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/ButtonTableHeader.java
|
Method name: String getProp(String, int[])
|
|
Method name: void mouseReleased(MouseEvent)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | isInComment = false;↵ | | |
|
2 | isABracket = false;↵ | | |
|
3 | isASlash = false↵ | | 1 | _pressed = false;↵
|
| | | 2 | _dragged = false;↵
|
4 | ; | | 3 | return;
|
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 different classes |
Number of node comparisons | 9 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
15 | isInComment = false; | | 4 | _pressed = false; |
| | | 5 | _dragged = false; |
| | | 6 | return; |
16 | isABracket = false; | | | |
17 | isASlash = false; | | | |
Precondition Violations (3)
Row |
Violation |
1 | Unmatched statement _dragged=false; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Unmatched return; |
3 | Clone fragment #1 returns variables isInComment , while Clone fragment #2 returns variables |