if (command.equals("DETAILS")) { layoutComponents(); pack(); setLocationRelativeTo(null); }
setEnabled(true); removeAll(); createSubMenu();
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/dialog/ErrorDialog.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/action/TagMessageMenu.java
Method name: void actionPerformed(ActionEvent) Method name: void selectionChanged(SelectionChangedEvent)
Number of AST nodes: 4 Number of AST nodes: 3
1
if (command.equals("DETAILS")) {
2
			layoutComponents
1
setEnabled(true);
3
();
2
			removeAll();
4
			pack();
3
			
5
			setLocationRelativeTo(null);
6
		}
4
createSubMenu();
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons9
  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.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    10
    layoutComponents();
    10
    layoutComponents();
    4
    createSubMenu();
    Differences
    Expression1Expression2Difference
    layoutComponentscreateSubMenuMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression layoutComponents() is a void method call, and thus it cannot be parameterized
    Expression createSubMenu() is a void method call, and thus it cannot be parameterized
    4
    createSubMenu();
    11
    pack();
    11
    pack();
    3
    removeAll();
    Differences
    Expression1Expression2Difference
    packremoveAllMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression pack() is a void method call, and thus it cannot be parameterized
    Expression removeAll() is a void method call, and thus it cannot be parameterized
    3
    removeAll();
    12
    setLocationRelativeTo(null);
    12
    setLocationRelativeTo(null);
    2
    setEnabled(true);
    Differences
    Expression1Expression2Difference
    setLocationRelativeTosetEnabledMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression setLocationRelativeTo(null) is a void method call, and thus it cannot be parameterized
    Expression setEnabled(true) is a void method call, and thus it cannot be parameterized
    2
    setEnabled(true);
    Precondition Violations (6)
    Row Violation
    1Expression layoutComponents() is a void method call, and thus it cannot be parameterized
    2Expression createSubMenu() is a void method call, and thus it cannot be parameterized
    3Expression pack() is a void method call, and thus it cannot be parameterized
    4Expression removeAll() is a void method call, and thus it cannot be parameterized
    5Expression setLocationRelativeTo(null) is a void method call, and thus it cannot be parameterized
    6Expression setEnabled(true) is a void method call, and thus it cannot be parameterized