if (table.isEditing()) { TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn()); cellEditor.stopCellEditing(); }
if (table.isEditing()) { TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn()); cellEditor.stopCellEditing(); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/gui/HTTPFileArgsPanel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/gui/ArgumentsPanel.java
Method name: void stopTableEditing() Method name: void stopTableEditing()
Number of AST nodes: 3 Number of AST nodes: 3
1
if (table.isEditing()) {
1
if (table.isEditing()) {
2
            TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());
2
			TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());
3
            cellEditor.stopCellEditing();
3
			cellEditor.stopCellEditing();
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.1
Clones locationClones are in different classes having the same super class
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)1.1
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    1
    if (table.isEditing())
    1
    if (table.isEditing())
    2
    TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());
    2
    TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());
    3
    cellEditor.stopCellEditing();
    3
    cellEditor.stopCellEditing();
    Precondition Violations (1)
    Row Violation
    1The refactoring of the clones is infeasible, because classes org.apache.jmeter.protocol.http.gui.HTTPFileArgsPanel and org.apache.jmeter.config.gui.ArgumentsPanel do not have a common superclass