includeModel.addNewRow(); includeModel.fireTableDataChanged(); enableRestart();
excludeModel.removeRow(excludeTable.getSelectedRow()); excludeModel.fireTableDataChanged(); enableRestart();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java
Method name: void actionPerformed(ActionEvent) Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
includeModel.addNewRow();
1
excludeModel.removeRow(excludeTable.getSelectedRow());
2
			includeModel.fireTableDataChanged();
2
			excludeModel.fireTableDataChanged();
3
			enableRestart();
3
			enableRestart();
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 the same method
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
    19
    includeModel.addNewRow();
    19
    includeModel.addNewRow();
    25
    enableRestart();
    Differences
    Expression1Expression2Difference
    addNewRowenableRestartMETHOD_INVOCATION_NAME_MISMATCH
    includeModelMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression includeModel.addNewRow() is a void method call, and thus it cannot be parameterized
    Expression enableRestart() is a void method call, and thus it cannot be parameterized
    Expression includeModel.addNewRow() is a void method call, and thus it cannot be parameterized
    Expression enableRestart() is a void method call, and thus it cannot be parameterized
    25
    enableRestart();
    20
    includeModel.fireTableDataChanged();
    20
    includeModel.fireTableDataChanged();
    24
    excludeModel.fireTableDataChanged();
    Differences
    Expression1Expression2Difference
    includeModelexcludeModelVARIABLE_NAME_MISMATCH
    24
    excludeModel.fireTableDataChanged();
    21
    enableRestart();
    21
    enableRestart();
    23
    excludeModel.removeRow(excludeTable.getSelectedRow());
    Differences
    Expression1Expression2Difference
    enableRestartremoveRowMETHOD_INVOCATION_NAME_MISMATCH
    enableRestart()excludeModel.removeRow(excludeTable.getSelectedRow())ARGUMENT_NUMBER_MISMATCH
    excludeModelMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression enableRestart() is a void method call, and thus it cannot be parameterized
    Expression excludeModel.removeRow(excludeTable.getSelectedRow()) is a void method call, and thus it cannot be parameterized
    Expression enableRestart() is a void method call, and thus it cannot be parameterized
    Expression excludeModel.removeRow(excludeTable.getSelectedRow()) is a void method call, and thus it cannot be parameterized
    23
    excludeModel.removeRow(excludeTable.getSelectedRow());
    Precondition Violations (8)
    Row Violation
    1Expression includeModel.addNewRow() is a void method call, and thus it cannot be parameterized
    2Expression enableRestart() is a void method call, and thus it cannot be parameterized
    3Expression includeModel.addNewRow() is a void method call, and thus it cannot be parameterized
    4Expression enableRestart() is a void method call, and thus it cannot be parameterized
    5Expression enableRestart() is a void method call, and thus it cannot be parameterized
    6Expression excludeModel.removeRow(excludeTable.getSelectedRow()) is a void method call, and thus it cannot be parameterized
    7Expression enableRestart() is a void method call, and thus it cannot be parameterized
    8Expression excludeModel.removeRow(excludeTable.getSelectedRow()) is a void method call, and thus it cannot be parameterized