File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/GraphDesktopPane.java | File path: /sql12/plugins/favs/src/net/sourceforge/squirrel_sql/plugins/favs/NewSavedQueriesFolderCommand.java | |||
Method name: void paint(Graphics)
|
Method name: void execute()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | super.paintComponent(g);↵ | |||
2 | super.paintBorder(g);↵ | |||
3 | paintGraphComponents(g);↵ | |||
4 | super.paintChildren(g); | 1 | if (newNodePath != null) {↵ | |
2 | _tree.makeVisible(newNodePath);↵ | |||
3 | _tree.expandPath(newNodePath);↵ | |||
4 | _tree.startEditingAtPath(newNodePath);↵ | |||
5 |
| |||
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 |
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); |
| 21 | _tree.makeVisible(newNodePath); | |||||||||||||
2 | super.paintBorder(g); |
| 22 | _tree.expandPath(newNodePath); | |||||||||||||
3 | paintGraphComponents(g); | | |||||||||||||||
4 | super.paintChildren(g); |
| 23 | _tree.startEditingAtPath(newNodePath); |
Row | Violation |
---|---|
1 | Expression super.paintComponent(g) is a void method call, and thus it cannot be parameterized |
2 | Expression _tree.makeVisible(newNodePath) 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.expandPath(newNodePath) 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.startEditingAtPath(newNodePath) is a void method call, and thus it cannot be parameterized |
9 | Super method call super.paintChildren(g); cannot be extracted from method |