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