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();
    3
    removeAll();
    Differences
    Expression1Expression2Difference
    layoutComponentsremoveAllMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression removeAll() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression layoutComponents() 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();
    11
    pack();
    11
    pack();
    2
    setEnabled(true);
    Differences
    Expression1Expression2Difference
    packsetEnabledMETHOD_INVOCATION_NAME_MISMATCH
    pack()setEnabled(true)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression pack() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression pack() 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
    Expression pack() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression pack() 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);
    12
    setLocationRelativeTo(null);
    12
    setLocationRelativeTo(null);
    4
    createSubMenu();
    Differences
    Expression1Expression2Difference
    setLocationRelativeTocreateSubMenuMETHOD_INVOCATION_NAME_MISMATCH
    setLocationRelativeTo(null)createSubMenu()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression createSubMenu() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression setLocationRelativeTo(null) is a void method call, and thus it cannot be parameterized
    Expression createSubMenu() is a void method call, and thus it cannot be parameterized
    Expression createSubMenu() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression setLocationRelativeTo(null) 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();
    Precondition Violations (16)
    Row Violation
    1Expression removeAll() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression layoutComponents() is a void method call, and thus it cannot be parameterized
    3Expression removeAll() is a void method call, and thus it cannot be parameterized
    4Expression pack() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression pack() 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
    7Expression pack() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression pack() is a void method call, and thus it cannot be parameterized
    9Expression setEnabled(true) is a void method call, and thus it cannot be parameterized
    10Expression createSubMenu() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    11Expression setLocationRelativeTo(null) is a void method call, and thus it cannot be parameterized
    12Expression createSubMenu() is a void method call, and thus it cannot be parameterized
    13Expression createSubMenu() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    14Expression setLocationRelativeTo(null) is a void method call, and thus it cannot be parameterized
    15Expression createSubMenu() is a void method call, and thus it cannot be parameterized
    16The refactoring of the clones is infeasible, because classes org.columba.core.gui.dialog.ErrorDialog and org.columba.mail.gui.table.action.TagMessageMenu do not have a common superclass