if(null != _sqlEntryPanel)
{
doActionPerformed(_sqlEntryPanel, evt);
}
else if(null != _session)
{
ISQLEntryPanel sqlEntryPanel = _session.getSQLPanelAPIOfActiveSessionWindow().getSQLEntryPanel();
doActionPerformed(sqlEntryPanel, evt);
}
if(null != _isqlEntryPanel)
{
doActionPerformed(_isqlEntryPanel, evt);
}
if(null != _session)
{
ISQLEntryPanel sqlEntryPanel = _session.getSQLPanelAPIOfActiveSessionWindow().getSQLEntryPanel();
doActionPerformed(sqlEntryPanel, evt);
}
Clone fragments detected by clone detection tool
File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/netbeans/FindAction.java
|
|
File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/netbeans/ReplaceAction.java
|
Method name: void actionPerformed(ActionEvent)
|
|
Method name: void actionPerformed(ActionEvent)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | if(null != _sqlEntryPanel)↵ | | 1 | if(null != _isqlEntryPanel)↵
|
2 | {↵ | | 2 | {↵
|
3 | doActionPerformed(_sqlEntryPanel, evt);↵ | | 3 | doActionPerformed(_isqlEntryPanel, evt);↵
|
4 | }↵ | | 4 | }↵
|
5 | else if(null != _session)↵ | | 5 | if(null != _session)↵
|
6 | {↵ | | 6 | {↵
|
7 | ISQLEntryPanel sqlEntryPanel = _session.getSQLPanelAPIOfActiveSessionWindow().getSQLEntryPanel();↵ | | 7 | ISQLEntryPanel sqlEntryPanel = _session.getSQLPanelAPIOfActiveSessionWindow().getSQLEntryPanel();↵
|
8 | doActionPerformed(sqlEntryPanel, evt);↵ | | 8 | doActionPerformed(sqlEntryPanel, evt);↵
|
9 | } | | 9 | }
|
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 4 |