File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/GraphDesktopPane.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/ObjectTreePanel.java | |||
Method name: void paint(Graphics)
|
Method name: boolean selectInObjectTree(String, String, FilterMatcher)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | super.paintComponent(g);↵ | |||
2 | super.paintBorder(g);↵ | |||
3 | paintGraphComponents(g↵ | 1 | _tree.setSelectionPath(treePath);↵ | |
4 | );↵ | 2 | _tree.scrollPathToVisible(treePath);↵ | |
5 | super.paintChildren(g); | 3 | 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 | 12 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.paintComponent(g); |
| 5 | _tree.setSelectionPath(treePath); | |||||||||||||
2 | super.paintBorder(g); |
| 6 | _tree.scrollPathToVisible(treePath); | |||||||||||||
3 | paintGraphComponents(g); | | |||||||||||||||
4 | super.paintChildren(g); | | |||||||||||||||
|
| 7 | return true; |
Row | Violation |
---|---|
1 | Expression super.paintComponent(g) is a void method call, and thus it cannot be parameterized |
2 | Expression _tree.setSelectionPath(treePath) is a void method call, and thus it cannot be parameterized |
3 | Super method call super.paintComponent(g); cannot be extracted from method |
4 | Expression super.paintBorder(g) is a void method call, and thus it cannot be parameterized |
5 | Expression _tree.scrollPathToVisible(treePath) is a void method call, and thus it cannot be parameterized |
6 | Super method call super.paintBorder(g); cannot be extracted from method |
7 | Unmatched return true; |
8 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.graph.GraphDesktopPane and net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree.ObjectTreePanel do not have a common superclass |