return priorityController.getView(); else if (aComponent.equals(priorityController.getView())) return headerController.getView().getToComboBox(); else if (aComponent.equals(headerController.getView() .getToComboBox())) return headerController.getView().getCcComboBox(); else if (aComponent.equals(headerController.getView() .getCcComboBox())) return headerController.getView().getBccComboBox(); else if (aComponent.equals(headerController.getView() .getBccComboBox())) return subjectController.getView();
return subjectController.getView(); else if (aComponent.equals(subjectController.getView())) return headerController.getView().getBccComboBox(); else if (aComponent.equals(headerController.getView() .getBccComboBox())) return headerController.getView().getCcComboBox(); else if (aComponent.equals(headerController.getView() .getCcComboBox())) return headerController.getView().getToComboBox(); else if (aComponent.equals(headerController.getView() .getToComboBox())) return priorityController.getView();
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/ComposerController.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/ComposerController.java
Method name: Component getComponentAfter(Container, Component) Method name: Component getComponentBefore(Container, Component)
Number of AST nodes: 5 Number of AST nodes: 5
1
return priorityController.getView();
1
return subjectController.getView();
2
			else if (aComponent.equals(priorityController.getView()))
2
			else if (aComponent.equals(subjectController.getView()))
3
				return headerController.getView().getToComboBox();
3
				return headerController.getView().getBccComboBox();
4
			else if (aComponent.equals(headerController.getView()
4
			else if (aComponent.equals(headerController.getView()
5
					.getToComboBox()))
5
					.getBccComboBox()))
6
				return headerController.getView().getCcComboBox();
6
				return headerController.getView().getCcComboBox();
7
			else if (aComponent.equals(headerController.getView()
7
			else if (aComponent.equals(headerController.getView()
8
					.getCcComboBox()))
8
					.getCcComboBox()))
9
				return headerController.getView().getBccComboBox();
9
				return headerController.getView().getToComboBox();
10
			else if (aComponent.equals(headerController.getView()
10
			else if (aComponent.equals(headerController.getView()
11
					.getBccComboBox()))
11
					.getToComboBox()))
12
				return subjectController.getView();
12
				return priorityController.getView();
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 declared in the same class
Number of node comparisons1
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    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
    2
    return priorityController.getView();
    2
    return priorityController.getView();
    2
    return subjectController.getView();
    Differences
    Expression1Expression2Difference
    priorityControllersubjectControllerVARIABLE_NAME_MISMATCH
    org.columba.mail.gui.composer.PriorityControllerorg.columba.mail.gui.composer.SubjectControllerVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.columba.mail.gui.composer.PriorityController of variable priorityController does not match with type org.columba.mail.gui.composer.SubjectController of variable subjectController
    • Make classes org.columba.mail.gui.composer.PriorityController and org.columba.mail.gui.composer.SubjectController extend a common superclass
    2
    return subjectController.getView();
    Precondition Violations (1)
    Row Violation
    1Type org.columba.mail.gui.composer.PriorityController of variable priorityController does not match with type org.columba.mail.gui.composer.SubjectController of variable subjectController