File path: /sql12/plugins/favs/src/net/sourceforge/squirrel_sql/plugins/favs/NewSavedQueriesFolderCommand.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/ObjectTreePanel.java | |||
Method name: void execute()
|
Method name: boolean selectInObjectTree(String, String, FilterMatcher)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | if (newNodePath != null) {↵ | |||
2 | _tree.makeVisible(newNodePath);↵ | |||
3 | _tree.expandPath(newNodePath);↵ | |||
4 | _tree.startEditingAtPath(newNodePath);↵ | |||
5 | } | 1 | _tree.setSelectionPath(treePath);↵ | |
2 | _tree.scrollPathToVisible(treePath);↵ | |||
3 |
| |||
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 | 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 | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21 | _tree.makeVisible(newNodePath); |
| 6 | _tree.scrollPathToVisible(treePath); | ||||||||||||||||||
22 | _tree.expandPath(newNodePath); |
| 5 | _tree.setSelectionPath(treePath); | ||||||||||||||||||
|
| 7 | return true; | |||||||||||||||||||
23 | _tree.startEditingAtPath(newNodePath); | |
Row | Violation |
---|---|
1 | Expression _tree.makeVisible(newNodePath) is a void method call, and thus it cannot be parameterized |
2 | Expression _tree.scrollPathToVisible(treePath) is a void method call, and thus it cannot be parameterized |
3 | Expression _tree.expandPath(newNodePath) is a void method call, and thus it cannot be parameterized |
4 | Expression _tree.setSelectionPath(treePath) is a void method call, and thus it cannot be parameterized |
5 | Unmatched return true; |