Object[] array = ccList.getSelectedValues(); for (int j = 0; j < array.length; j++) { dialogAddressbookListModel[1] .removeElement((IHeaderItem) array[j]); } } else if (command.equals("BCC_REMOVE")) { //$NON-NLS-1$ Object[] array = bccList.getSelectedValues(); for (int j = 0; j < array.length; j++) { dialogAddressbookListModel[2] .removeElement((IHeaderItem) array[j]); }
Object[] array = toList.getSelectedValues(); for (int j = 0; j < array.length; j++) { dialogAddressbookListModel[0] .removeElement((IHeaderItem) array[j]); } } else if (command.equals("CC_REMOVE")) { //$NON-NLS-1$ Object[] array = ccList.getSelectedValues(); for (int j = 0; j < array.length; j++) { dialogAddressbookListModel[1] .removeElement((IHeaderItem) array[j]); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/contact/SelectAddressDialog.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/contact/SelectAddressDialog.java
Method name: void actionPerformed(ActionEvent) Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 6 Number of AST nodes: 6
1
Object[] array = ccList.getSelectedValues();
1
Object[] array = toList.getSelectedValues();
2
			for (int j = 0; j < array.length; j++) {
2
			for (int j = 0; j < array.length; j++) {
3
				dialogAddressbookListModel[1]
3
				dialogAddressbookListModel[0]
4
						.removeElement((IHeaderItem) array[j]);
4
						.removeElement((IHeaderItem) array[j]);
5
			}
5
			}
6
		} else if (command.equals("BCC_REMOVE")) { //$NON-NLS-1$
6
		} else if (command.equals("CC_REMOVE")) { //$NON-NLS-1$
7
			Object[] array = bccList.getSelectedValues();
7
			Object[] array = ccList.getSelectedValues();
8
			for (int j = 0; j < array.length; j++) {
8
			for (int j = 0; j < array.length; j++) {
9
				dialogAddressbookListModel[2]
9
				dialogAddressbookListModel[1]
10
						.removeElement((IHeaderItem) array[j]);
10
						.removeElement((IHeaderItem) array[j]);
11
			}
11
			}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in the same method
Number of node comparisons6
  1. {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.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    33
    Object[] array = ccList.getSelectedValues();
    33
    Object[] array = ccList.getSelectedValues();
    29
    Object[] array = toList.getSelectedValues();
    Differences
    Expression1Expression2Difference
    ccListtoListVARIABLE_NAME_MISMATCH
    29
    Object[] array = toList.getSelectedValues();
    34
    for (int j = 0; j < array.length; j++)
    30
    for (int j = 0; j < array.length; j++)
    35
    dialogAddressbookListModel[1].removeElement((IHeaderItem)array[j]);
    35
    dialogAddressbookListModel[1].removeElement((IHeaderItem)array[j]);
    31
    dialogAddressbookListModel[0].removeElement((IHeaderItem)array[j]);
    Differences
    Expression1Expression2Difference
    10LITERAL_VALUE_MISMATCH
    31
    dialogAddressbookListModel[0].removeElement((IHeaderItem)array[j]);
    Precondition Violations (0)
    Row Violation