if (e.getActionCommand().equals(ActionNames.ABOUT)) { this.about(); }
if (e.getActionCommand().equals(ReportExitCommand.EXIT)) { doAction(e); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/AboutCommand.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportCheckDirty.java
Method name: void doAction(ActionEvent) Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 2 Number of AST nodes: 2
1
if (e.getActionCommand().equals(ActionNames.ABOUT)) {
1
if (e.getActionCommand().equals(
2
			this.about(
2
ReportExitCommand.EXIT)) {
3
);
3
			doAction(e);
4
		}
4
		}
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.2
Clones locationClones are in different classes
Number of node comparisons4
  1. {Non-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)2.1
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (e.getActionCommand().equals(ActionNames.ABOUT))
    1
    if (e.getActionCommand().equals(ActionNames.ABOUT))
    1
    if (e.getActionCommand().equals(ReportExitCommand.EXIT))
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.gui.action.ActionNamesorg.apache.jmeter.report.gui.action.ReportExitCommandVARIABLE_TYPE_MISMATCH
    ABOUTEXITVARIABLE_NAME_MISMATCH
    Preondition Violations
    Type org.apache.jmeter.gui.action.ActionNames of variable ActionNames does not match with type org.apache.jmeter.report.gui.action.ReportExitCommand of variable ReportExitCommand
    • Make classes org.apache.jmeter.gui.action.ActionNames and org.apache.jmeter.report.gui.action.ReportExitCommand extend a common superclass
    1
    if (e.getActionCommand().equals(ReportExitCommand.EXIT))
    2
    this.about();
    2
    this.about();
    2
    doAction(e);
    Differences
    Expression1Expression2Difference
    aboutdoActionMETHOD_INVOCATION_NAME_MISMATCH
    this.about()doAction(e)ARGUMENT_NUMBER_MISMATCH
    thisMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression this.about() is a void method call, and thus it cannot be parameterized
    Expression doAction(e) is a void method call, and thus it cannot be parameterized
    Expression this.about() is a void method call, and thus it cannot be parameterized
    Expression doAction(e) is a void method call, and thus it cannot be parameterized
    2
    doAction(e);
    Precondition Violations (5)
    Row Violation
    1Type org.apache.jmeter.gui.action.ActionNames of variable ActionNames does not match with type org.apache.jmeter.report.gui.action.ReportExitCommand of variable ReportExitCommand
    2Expression this.about() is a void method call, and thus it cannot be parameterized
    3Expression doAction(e) is a void method call, and thus it cannot be parameterized
    4Expression this.about() is a void method call, and thus it cannot be parameterized
    5Expression doAction(e) is a void method call, and thus it cannot be parameterized