ComponentUtil.centerComponentInWindow(main, 80); main.show(); ActionRouter.getInstance().actionPerformed(new ActionEvent(main, 1, ActionNames.ADD_ALL));
ComponentUtil.centerComponentInWindow(main, 80); main.show(); ReportActionRouter.getInstance().actionPerformed(new ActionEvent(main, 1, ReportCheckDirty.ADD_ALL));
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/JMeter.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/JMeterReport.java
Method name: void startGui(String) Method name: void startGui(CLOption)
Number of AST nodes: 3 Number of AST nodes: 3
1
ComponentUtil.centerComponentInWindow(main, 80);
1
ComponentUtil.centerComponentInWindow(main, 80);
2
		main.show();
2
        main.show();
3
		
4
ActionRouter.getInstance().actionPerformed(new ActionEvent(main, 1, ActionNames.ADD_ALL));
3
        ReportActionRouter.getInstance().actionPerformed(new ActionEvent(main, 1, ReportCheckDirty.ADD_ALL));
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
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
    7
    ComponentUtil.centerComponentInWindow(main, 80);
    7
    ComponentUtil.centerComponentInWindow(main, 80);
    7
    ComponentUtil.centerComponentInWindow(main, 80);
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.gui.MainFrameorg.apache.jmeter.gui.ReportMainFrameSUBCLASS_TYPE_MISMATCH
    7
    ComponentUtil.centerComponentInWindow(main, 80);
    8
    main.show();
    8
    main.show();
    8
    main.show();
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.gui.MainFrameorg.apache.jmeter.gui.ReportMainFrameSUBCLASS_TYPE_MISMATCH
    8
    main.show();
    9
    ActionRouter.getInstance().actionPerformed(new ActionEvent(main, 1, ActionNames.ADD_ALL));
    9
    ActionRouter.getInstance().actionPerformed(new ActionEvent(main, 1, ActionNames.ADD_ALL));
    9
    ReportActionRouter.getInstance().actionPerformed(new ActionEvent(main, 1, ReportCheckDirty.ADD_ALL));
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.gui.MainFrameorg.apache.jmeter.gui.ReportMainFrameSUBCLASS_TYPE_MISMATCH
    org.apache.jmeter.gui.action.ActionNamesorg.apache.jmeter.report.gui.action.ReportCheckDirtyVARIABLE_TYPE_MISMATCH
    org.apache.jmeter.gui.action.ActionRouterorg.apache.jmeter.report.gui.action.ReportActionRouterSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Type org.apache.jmeter.gui.action.ActionNames does not match with type org.apache.jmeter.report.gui.action.ReportCheckDirty
    • Make classes org.apache.jmeter.gui.action.ActionNames and org.apache.jmeter.report.gui.action.ReportCheckDirty extend a common superclass
    Expression ActionRouter cannot be unified with expression ReportActionRouter , because common superclass java.awt.event.ActionListener does not declare member(s) public static org.apache.jmeter.gui.action.ActionRouter getInstance() , public static org.apache.jmeter.report.gui.action.ReportActionRouter getInstance()
    9
    ReportActionRouter.getInstance().actionPerformed(new ActionEvent(main, 1, ReportCheckDirty.ADD_ALL));
    Precondition Violations (2)
    Row Violation
    1Type org.apache.jmeter.gui.action.ActionNames does not match with type org.apache.jmeter.report.gui.action.ReportCheckDirty
    2Expression ActionRouter cannot be unified with expression ReportActionRouter , because common superclass java.awt.event.ActionListener does not declare member(s) public static org.apache.jmeter.gui.action.ActionRouter getInstance() , public static org.apache.jmeter.report.gui.action.ReportActionRouter getInstance()