if (e.getType() == ErrorEvent.SETUP_AUTO_COMMIT_TYPE) { String exMsg = ""; if (e.getException() != null) { exMsg = e.getException().getMessage(); } String message = getMessage("CopyProgressMonitor.setupAutoCommitException", exMsg); String title = getMessage("CopyProgressMonitor.setupAutoCommitExceptionTitle"); int messageType = JOptionPane.ERROR_MESSAGE; showMessageDialog(message, title, messageType); }
if (e.getType() == ErrorEvent.RESTORE_AUTO_COMMIT_TYPE) { String exMsg = ""; if (e.getException() != null) { exMsg = e.getException().getMessage(); } String message = getMessage("CopyProgressMonitor.restoreAutoCommitException", exMsg); String title = getMessage("CopyProgressMonitor.restoreAutoCommitExceptionTitle"); int messageType = JOptionPane.ERROR_MESSAGE; showMessageDialog(message, title, messageType); }
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/CopyProgressMonitor.java File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/CopyProgressMonitor.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (e.getType() == ErrorEvent.SETUP_AUTO_COMMIT_TYPE) {
1
if (e.getType() == ErrorEvent.RESTORE_AUTO_COMMIT_TYPE) {
2
            String exMsg = "";
2
            String exMsg = "";
3
            if (e.getException() != null) {
3
            if (e.getException() != null) {
4
                exMsg = e.getException().getMessage();
4
                exMsg = e.getException().getMessage();
5
            }            
5
            }
6
            String message = 
6
            String message = 
7
                getMessage("CopyProgressMonitor.setupAutoCommitException",
7
                getMessage("CopyProgressMonitor.restoreAutoCommitException", 
8
                           exMsg);
8
                           exMsg);
9
            String title = 
9
            String title =
10
                getMessage("CopyProgressMonitor.setupAutoCommitExceptionTitle");
10
                getMessage("CopyProgressMonitor.restoreAutoCommitExceptionTitle");
11
            int messageType = JOptionPane.ERROR_MESSAGE;
11
            int messageType = JOptionPane.ERROR_MESSAGE;
12
            showMessageDialog(message, title, messageType);
12
            showMessageDialog(message, title, messageType);                                  
13
        }
13
        }
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