File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/DualProgressBarDialog.java | File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/DualProgressBarDialog.java | |||
Method name: void setTopBarMinMax(int, int)
|
Method name: void setBottomBarMinMax(int, int)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (topBar.getMinimum() == min ↵ | 1 | if (bottomBar.getMinimum() == min ↵ | |
2 | && topBar.getMaximum() == max) ↵ | 2 | && bottomBar.getMaximum() == max) ↵ | |
3 | {↵ | 3 | {↵ | |
4 | return;↵ | 4 | return;↵ | |
5 | }↵ | 5 | }↵ | |
6 | if (SwingUtilities.isEventDispatchThread()) {↵ | 6 | if (SwingUtilities.isEventDispatchThread()) {↵ | |
7 | topBar.setMinimum(min);↵ | 7 | bottomBar.setMinimum(min);↵ | |
8 | topBar.setMaximum(max);↵ | 8 | bottomBar.setMaximum(max);↵ | |
9 | } else {↵ | 9 | } else {↵ | |
10 | SwingUtilities.invokeLater(new Runnable() {↵ | 10 | SwingUtilities.invokeLater(new Runnable() {↵ | |
11 | public void run() {↵ | 11 | public void run() {↵ | |
12 | topBar.setMinimum(min);↵ | 12 | bottomBar.setMinimum(min);↵ | |
13 | topBar.setMaximum(max);↵ | 13 | bottomBar.setMaximum(max);↵ | |
14 | }↵ | 14 | }↵ | |
15 | }); ↵ | 15 | }); ↵ | |
16 | } | 16 |
| |
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.7 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 22 |
Number of mapped statements | 6 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (topBar.getMinimum() == min && topBar.getMaximum() == max) |
| 1 | if (bottomBar.getMinimum() == min && bottomBar.getMaximum() == max) | |||||||||||||
2 | return; | 2 | return; | ||||||||||||||
3 | if (SwingUtilities.isEventDispatchThread()) | 3 | if (SwingUtilities.isEventDispatchThread()) | ||||||||||||||
4 | topBar.setMinimum(min); |
| 4 | bottomBar.setMinimum(min); | |||||||||||||
5 | topBar.setMaximum(max); |
| 5 | bottomBar.setMaximum(max); | |||||||||||||
else | else | ||||||||||||||||
6 | SwingUtilities.invokeLater(new Runnable() {...}); |
| 6 | SwingUtilities.invokeLater(new Runnable() {...}); |
Row | Violation |
---|