if(0 < completion.getMoveCarretBackCount())
{
_sqlEntryPanel.setCaretPosition(_sqlEntryPanel.getCaretPosition() - completion.getMoveCarretBackCount());
}
if(0 < _storingSessionIDs.size())
{
SchemaInfoCacheSerializer.class.wait(30000);
}
Clone fragments detected by clone detection tool
File path: /sql12/plugins/codecompletion/src/net/sourceforge/squirrel_sql/plugins/codecompletion/CompleteCodeAction.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/schemainfo/SchemaInfoCacheSerializer.java
|
Method name: void adjustCaret(CodeCompletionInfo)
|
|
Method name: void waitTillStoringIsDone()
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | if(0 < completion.getMoveCarretBackCount())↵ | | 1 | if(0 < _storingSessionIDs.size())↵
|
2 | {↵ | | 2 | {↵
|
3 | _sqlEntryPanel.setCaretPosition(_sqlEntryPanel.getCaretPosition() - completion.getMoveCarretBackCount());↵ | | 3 | ↵
|
| | | 4 | SchemaInfoCacheSerializer.class.wait(30000);↵
|
4 | } | | 5 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |