File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/gui/ArgumentsPanel.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/gui/HTTPFileArgsPanel.java | |||
Method name: void deleteArgument()
|
Method name: void runCommandOnSelectedFile(String)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | tableModel.removeRow(rowSelected);↵ | 1 | runCommandOnRow(command, rowSelected);↵ | |
2 | tableModel.fireTableDataChanged();↵ | 2 | tableModel.fireTableDataChanged();↵ | |
3 | // Disable DELETE if there are no rows in the table to delete.↵ | 3 | // Disable DELETE and BROWSE if there are no rows in the table to delete.↵ | |
4 | if (tableModel.getRowCount() == 0) {↵ | |||
5 | delete.setEnabled(false);↵ | |||
6 | }↵ | |||
7 | ↵ | 4 | checkDeleteAndBrowseStatus();↵ | |
8 | // Table still contains one or more rows, so highlight (select)↵ | 5 | // Table still contains one or more rows, so highlight (select)↵ | |
9 | // the appropriate one.↵ | 6 | // the appropriate one.↵ | |
10 | else {↵ | |||
11 | ↵ | 7 | if (tableModel.getRowCount() != 0) {↵ | |
12 | int rowToSelect = rowSelected;↵ | 8 | int rowToSelect = rowSelected;↵ | |
13 | if (rowSelected >= tableModel.getRowCount()) {↵ | 9 | if (rowSelected >= tableModel.getRowCount()) {↵ | |
14 | rowToSelect = rowSelected - 1;↵ | 10 | rowToSelect = rowSelected - 1;↵ | |
15 | }↵ | |||
16 | ↵ | 11 | }↵ | |
17 | table.setRowSelectionInterval(rowToSelect, rowToSelect);↵ | 12 | table.setRowSelectionInterval(rowToSelect, rowToSelect);↵ | |
18 | } | 13 | } | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 5 |
Number of mapped statements | 3 |
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) | 0.5 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
10 | int rowToSelect = rowSelected; | 10 | int rowToSelect = rowSelected; | |
11 | if (rowSelected >= tableModel.getRowCount()) | 11 | if (rowSelected >= tableModel.getRowCount()) | |
12 | rowToSelect = rowSelected - 1; | 12 | rowToSelect = rowSelected - 1; |
Row | Violation |
---|