public static void dispose() { if (dialog == null) { return; } if (SwingUtilities.isEventDispatchThread()) { dialog.dispose(); } else { SwingUtilities.invokeLater(new Runnable() { public void run() { dialog.dispose();
public static void dispose() { if (dialog == null) { return; } if (SwingUtilities.isEventDispatchThread()) { dialog.dispose(); } else { SwingUtilities.invokeLater(new Runnable() { public void run() { dialog.dispose();
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dataimport/src/net/sourceforge/squirrel_sql/plugins/dataimport/gui/ProgressBarDialog.java File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/DualProgressBarDialog.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static void dispose() {
1
public static void dispose() {
2
        if (dialog == null) {
2
        if (dialog == null) {
3
            return;
3
            return;
4
        }
4
        }
5
        if (SwingUtilities.isEventDispatchThread()) {
5
        if (SwingUtilities.isEventDispatchThread()) {
6
            dialog.dispose();            
6
            dialog.dispose();            
7
        } else {
7
        } else {
8
            SwingUtilities.invokeLater(new Runnable() {
8
            SwingUtilities.invokeLater(new Runnable() {
9
                public void run() {
9
                public void run() {
10
                    dialog.dispose();
10
                    dialog.dispose();
11
                
11
                
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0