if (child instanceof AddressbookFolder) { try { child.save(); } catch (Exception ex) { ex.printStackTrace(); } }
try { commandSemaphore.waitUntilReleased(); } catch (InterruptedException e) { LOG.warning("The thread waiting for the Save Attachment Temporary command was interrupted."); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/main/AddressbookExitWorker.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/command/SaveAttachmentTemporaryCommand.java
Method name: void saveAddressbookFolder(AbstractFolder) Method name: void waitForCommandToComplete()
Number of AST nodes: 3 Number of AST nodes: 2
1
if (child instanceof AddressbookFolder) {
2
                    try {
1
try {
3
                        child.save();
2
            
4
     
3
commandSemaphore.waitUntilReleased();
5
               } catch (Exception ex) {
4
        } catch (InterruptedException e) {
6
                        ex.printStackTrace();
5
            
7
                    }
8
        
6
LOG.warning("The thread waiting for the Save Attachment Temporary command was interrupted.");
9
        }
7
        }
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.2
Clones locationClones are in different classes
Number of node comparisons1