if (getFrameMediator() instanceof ComposerController) { ComposerText text = new ComposerText( (ComposerController) getFrameMediator()); new FindReplaceDialog(text); }
ComposerText text = new ComposerText( (ComposerController) getFrameMediator()); new FindReplaceDialog(text);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/action/FindReplaceAction.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/action/FindAction.java
Method name: void actionPerformed(ActionEvent) Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 3 Number of AST nodes: 2
1
if (getFrameMediator() instanceof ComposerController) {
2
			ComposerText text = new ComposerText(
1
ComposerText text = new ComposerText(
3
					(ComposerController) getFrameMediator());
2
				(ComposerController) getFrameMediator());
4
			new FindReplaceDialog(text);
3
		new FindReplaceDialog(text);
5
		}
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons2
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements2
    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 1
    Mapped Statements
    ID Statement ID Statement
    2
    ComposerText text = new ComposerText((ComposerController)getFrameMediator());
    1
    ComposerText text = new ComposerText((ComposerController)getFrameMediator());
    3
    new FindReplaceDialog(text);
    2
    new FindReplaceDialog(text);
    Precondition Violations (0)
    Row Violation