try {
SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
_getDialog(owner, title, modal, listener);
}
});
} catch (Exception e) {
//i18n[ProgressBarDialog.error.getdialog=getDialog: unable to invokeAndWait for dialog]
log.error(stringMgr.getString("ProgressBarDialog.error.getdialog"), e);
}
try {
SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
_getDialog(owner, title, modal, listener);
}
});
} catch (Exception e) {
//i18n[DualProgressBarDialog.error.getdialog=getDialog: unable to invokeAndWait for dialog]
log.error(s_stringMgr.getString("DualProgressBarDialog.error.getdialog"), e);
}
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: JDialog getDialog(Frame, String, boolean, ActionListener)
|
|
Method name: JDialog getDialog(Frame, String, boolean, ActionListener)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | try {↵ | | 1 | try {↵
|
2 | SwingUtilities.invokeAndWait(new Runnable() {↵ | | 2 | SwingUtilities.invokeAndWait(new Runnable() {↵
|
3 | public void run() {↵ | | 3 | public void run() {↵
|
4 | _getDialog(owner, title, modal, listener);↵ | | 4 | _getDialog(owner, title, modal, listener);↵
|
5 | }↵ | | 5 | }↵
|
6 | });↵ | | 6 | });↵
|
7 | } catch (Exception e) {↵ | | 7 | } catch (Exception e) {↵
|
8 | //i18n[ProgressBarDialog.error.getdialog=getDialog: unable to invokeAndWait for dialog]↵ | | 8 | //i18n[DualProgressBarDialog.error.getdialog=getDialog: unable to invokeAndWait for dialog]↵
|
9 | log.error(stringMgr.getString("ProgressBarDialog.error.getdialog"), e);↵ | | 9 | log.error(s_stringMgr.getString("DualProgressBarDialog.error.getdialog"), e);↵
|
10 | } | | 10 | }
|
See real code fragment |
|
See real code fragment |
Summary
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.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 5 |
-
{Non-refactorable}
Mapping Summary
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.8 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
3 | try | | 3 | try |
4 | SwingUtilities.invokeAndWait(new Runnable() {...}); | | 4 | SwingUtilities.invokeAndWait(new Runnable() {...}); |
Precondition Violations (0)
Row |
Violation |