File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerGrantFrame.java | File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerGrantFrame.java | |||
Method name: void setTreeData()
|
Method name: void setTreeData()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | for (int iV = 0; iV < listViewNames.size(); iV++)↵ | 1 | for (int iV = 0; iV < listRoleNames.size(); iV++)↵ | |
2 | {↵ | 2 | {↵ | |
3 | FirebirdManagerGrantTreeNode node =↵ | 3 | FirebirdManagerGrantTreeNode node =↵ | |
4 | new FirebirdManagerGrantTreeNode(listViewNames.get(iV), TREENODE_TYPE_VIEW);↵ | 4 | new FirebirdManagerGrantTreeNode(listRoleNames.get(iV), TREENODE_TYPE_ROLE);↵ | |
5 | treeModel.insertNodeInto(node, nodeViews, nodeViews.getChildCount());↵ | 5 | treeModel.insertNodeInto(node, nodeRoles, nodeRoles.getChildCount());↵ | |
6 | } | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 10 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 3.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23 | for (int iV = 0; iV < listViewNames.size(); iV++) |
| 29 | for (int iV = 0; iV < listRoleNames.size(); iV++) | |||||||||||||
24 | FirebirdManagerGrantTreeNode node = new FirebirdManagerGrantTreeNode(listViewNames.get(iV), TREENODE_TYPE_VIEW); |
| 30 | FirebirdManagerGrantTreeNode node = new FirebirdManagerGrantTreeNode(listRoleNames.get(iV), TREENODE_TYPE_ROLE); | |||||||||||||
25 | treeModel.insertNodeInto(node, nodeViews, nodeViews.getChildCount()); |
| 31 | treeModel.insertNodeInto(node, nodeRoles, nodeRoles.getChildCount()); |
Row | Violation |
---|