File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/SQLResultExecuterPanel.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/SQLResultExecuterPanel.java | |||
Method name: void closeCurrentResultTab()
|
Method name: void closeAllButCurrentResultTabs()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | Component selectedTab = _tabbedExecutionsPanel.getSelectedComponent();↵ | 1 | Component selectedTab = _tabbedExecutionsPanel.getSelectedComponent();↵ | |
2 | List<ResultTabInfo> tabs = new ArrayList<ResultTabInfo>(_usedTabs);↵ | 2 | List<ResultTabInfo> tabs = new ArrayList<ResultTabInfo>(_usedTabs);↵ | |
3 | for (Iterator<ResultTabInfo> it = tabs.iterator(); it.hasNext();)↵ | 3 | for (Iterator<ResultTabInfo> it = tabs.iterator(); it.hasNext();)↵ | |
4 | {↵ | 4 | {↵ | |
5 | ResultTabInfo ti = it.next();↵ | 5 | ResultTabInfo ti = it.next();↵ | |
6 | if(ti._tab.equals(selectedTab))↵ | 6 | if(false == ti._tab.equals(selectedTab))↵ | |
7 | {↵ | 7 | {↵ | |
8 | if (ti._resultFrame == null)↵ | 8 | if (ti._resultFrame == null)↵ | |
9 | {↵ | 9 | {↵ | |
10 | closeTab(ti._tab);↵ | 10 | closeTab(ti._tab);↵ | |
11 | }↵ | 11 | }↵ | |
12 | }↵ | 12 | }↵ | |
13 | } | 13 |
| |
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 declared in the same class |
Number of node comparisons | 6 |
Number of mapped statements | 2 |
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) | 1.7 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
6 | if (ti._resultFrame == null) | 6 | if (ti._resultFrame == null) | |
7 | closeTab(ti._tab); | 7 | closeTab(ti._tab); |
Row | Violation |
---|