if (protocol.getState() != IMAPProtocol.NOT_CONNECTED) { try { protocol.logout(); } catch (Exception e) { // don't care } }
if (in != null) { try { in.close(); } catch (IOException ioe) { } }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/imap/IMAPServer.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/command/ViewMessageSourceCommand.java
Method name: void logout() Method name: void execute(IWorkerStatusController)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (protocol.getState() != IMAPProtocol.NOT_CONNECTED) {
1
if (in != null) {
2
			try {
2
				try {
3
				protocol.logout();
3
					in.close();
4
			} catch (Exception e) {
4
				} catch (IOException ioe) {
5
				// don't care
5
				}
6
			}
6
			}
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.0
Clones locationClones are in different classes
Number of node comparisons0