File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/HelpViewerWindow.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/ObjectTreePanel.java | |||
Method name: void selectTreeNodeForURL(URL)
|
Method name: boolean selectInObjectTree(String, String, FilterMatcher)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | _tree.expandPath(path);↵ | 1 | _tree.↵ | |
2 | ↵ | 2 | setSelectionPath(treePath);↵ | |
3 | _tree.scrollPathToVisible(path);↵ | 3 | _tree.scrollPathToVisible(treePath);↵ | |
4 | _tree.setSelectionPath(path); | 4 | return true; | |
See real code fragment | See real code fragment |
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 having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | _tree.expandPath(path); | | |||||||||||||||
11 | _tree.scrollPathToVisible(path); |
| 6 | _tree.scrollPathToVisible(treePath); | |||||||||||||
12 | _tree.setSelectionPath(path); |
| 5 | _tree.setSelectionPath(treePath); | |||||||||||||
|
| 7 | return true; |
Row | Violation |
---|---|
1 | Unmatched return true; |
2 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.client.gui.HelpViewerWindow and net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree.ObjectTreePanel do not have a common superclass |