File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/modifiers/gui/UserParametersGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/gui/CookiePanel.java | |||
Method name: void actionPerformed(ActionEvent)
|
Method name: void actionPerformed(ActionEvent)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (paramTable.isEditing()) {↵ | 1 | if (cookieTable.isEditing()) {↵ | |
2 | TableCellEditor cellEditor = paramTable.getCellEditor(paramTable.getEditingRow(), paramTable↵ | 2 | TableCellEditor cellEditor = cookieTable.getCellEditor(cookieTable.getEditingRow(),↵ | |
3 | ↵ | |||
4 | .getEditingColumn());↵ | 3 | cookieTable.getEditingColumn());↵ | |
5 | cellEditor.stopCellEditing();↵ | 4 | cellEditor.stopCellEditing();↵ | |
6 | }↵ | 5 | }↵ | |
7 | tableModel.addNewRow();↵ | 6 | tableModel.addNewRow();↵ | |
8 | tableModel.fireTableDataChanged(); | 7 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 13 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 2.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (paramTable.isEditing()) |
| 19 | if (cookieTable.isEditing()) | ||||||||||||||||
2 | TableCellEditor cellEditor = paramTable.getCellEditor(paramTable.getEditingRow(), paramTable.getEditingColumn()); |
| 20 | TableCellEditor cellEditor = cookieTable.getCellEditor(cookieTable.getEditingRow(), cookieTable.getEditingColumn()); | ||||||||||||||||
3 | cellEditor.stopCellEditing(); | 21 | cellEditor.stopCellEditing(); | |||||||||||||||||
4 | tableModel.addNewRow(); | 22 | tableModel.addNewRow(); | |||||||||||||||||
5 | tableModel.fireTableDataChanged(); | 23 | tableModel.fireTableDataChanged(); |
Row | Violation |
---|---|
1 | The refactoring of the clones is infeasible, because classes org.apache.jmeter.modifiers.gui.UserParametersGui.AddParamAction and org.apache.jmeter.protocol.http.gui.CookiePanel do not have a common superclass |