if (e.getSource().cancelled()) { try { server.dropConnection(); } catch (IOException e1) { } }
if (e.getSource().cancelled()) { try { server.dropConnection(); } catch (IOException e1) { } }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/smtp/command/SendMessageCommand.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/pop3/command/FetchNewMessagesCommand.java
Method name: void workerStatusChanged(WorkerStatusChangedEvent) Method name: void workerStatusChanged(WorkerStatusChangedEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (e.getSource().cancelled()) {
1
if (e.getSource().cancelled()) {
2
						try {
2
					try {
3
							server.dropConnection();
3
						server.dropConnection();
4
						} catch (IOException e1) {
4
					} catch (IOException e1) {
5
						}
5
					}
6
					}
6
				}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.6
Clones locationClones are in different classes
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (e.getSource().cancelled())
    1
    if (e.getSource().cancelled())
    1
    if (e.getSource().cancelled())
    Differences
    Expression1Expression2Difference
    org.columba.mail.smtp.SMTPServerorg.columba.mail.pop3.POP3ServerVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.columba.mail.smtp.SMTPServer of variable server does not match with type org.columba.mail.pop3.POP3Server of variable server
    • Make classes org.columba.mail.smtp.SMTPServer and org.columba.mail.pop3.POP3Server extend a common superclass
    1
    if (e.getSource().cancelled())
    2
    try
    2
    try
    2
    try
    Differences
    Expression1Expression2Difference
    org.columba.mail.smtp.SMTPServerorg.columba.mail.pop3.POP3ServerVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.columba.mail.smtp.SMTPServer of variable server does not match with type org.columba.mail.pop3.POP3Server of variable server
    • Make classes org.columba.mail.smtp.SMTPServer and org.columba.mail.pop3.POP3Server extend a common superclass
    2
    try
    3
    server.dropConnection();
    3
    server.dropConnection();
    3
    server.dropConnection();
    Differences
    Expression1Expression2Difference
    org.columba.mail.smtp.SMTPServerorg.columba.mail.pop3.POP3ServerVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.columba.mail.smtp.SMTPServer of variable server does not match with type org.columba.mail.pop3.POP3Server of variable server
    • Make classes org.columba.mail.smtp.SMTPServer and org.columba.mail.pop3.POP3Server extend a common superclass
    3
    server.dropConnection();
    Precondition Violations (3)
    Row Violation
    1Type org.columba.mail.smtp.SMTPServer of variable server does not match with type org.columba.mail.pop3.POP3Server of variable server
    2Type org.columba.mail.smtp.SMTPServer of variable server does not match with type org.columba.mail.pop3.POP3Server of variable server
    3Type org.columba.mail.smtp.SMTPServer of variable server does not match with type org.columba.mail.pop3.POP3Server of variable server