if (e.getValueIsAdjusting()) { return; } DefaultListSelectionModel theList = (DefaultListSelectionModel) e .getSource();
if (e.getValueIsAdjusting()) { return; } DefaultListSelectionModel theList = (DefaultListSelectionModel) e .getSource();
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/ConfigFrame.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/folder/FolderOptionsDialog.java
Method name: void valueChanged(ListSelectionEvent) Method name: void valueChanged(ListSelectionEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (e.getValueIsAdjusting()) {
1
if (e.getValueIsAdjusting()) {
2
			return;
2
			return;
3
		}
3
		}
4
		DefaultListSelectionModel theList = (DefaultListSelectionModel) e
4
		DefaultListSelectionModel theList = (DefaultListSelectionModel) e
5
				.getSource();
5
				.getSource();
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.1
Clones locationClones are in different classes having the same super class
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.4
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    1
    if (e.getValueIsAdjusting())
    1
    if (e.getValueIsAdjusting())
    2
    return;
    2
    return;
    2
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    2
    return;
    3
    DefaultListSelectionModel theList = (DefaultListSelectionModel)e.getSource();
    3
    DefaultListSelectionModel theList = (DefaultListSelectionModel)e.getSource();
    Precondition Violations (2)
    Row Violation
    1Conditional return;
    2Conditional return;