File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/gui/SimpleConfigGui.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: 9 | Number of AST nodes: 9 | |||
1 | if (rowSelected >= 0) {↵ | 1 | if (rowSelected >= 0) {↵ | |
2 | // removeProperty(tableModel.getValueAt (↵ | |||
3 | // table.getSelectedRow(),0).toString());↵ | |||
4 | tableModel.removeRow(rowSelected);↵ | 2 | runCommandOnRow(command, rowSelected);↵ | |
5 | tableModel.fireTableDataChanged();↵ | 3 | tableModel.fireTableDataChanged();↵ | |
6 | // Disable DELETE if there are no rows in the table to delete.↵ | 4 | // Disable DELETE and BROWSE if there are no rows in the table to delete.↵ | |
7 | if (tableModel.getRowCount() == 0) {↵ | |||
8 | delete.setEnabled(false);↵ | |||
9 | } else {↵ | |||
10 | ↵ | 5 | checkDeleteAndBrowseStatus();↵ | |
11 | // Table still contains one or more rows, so highlight (select)↵ | 6 | // Table still contains one or more rows, so highlight (select)↵ | |
12 | // the appropriate one.↵ | 7 | // the appropriate one.↵ | |
13 | ↵ | 8 | if (tableModel.getRowCount() != 0) {↵ | |
14 | int rowToSelect = rowSelected;↵ | 9 | int rowToSelect = rowSelected;↵ | |
15 | if (rowSelected >= tableModel.getRowCount()) {↵ | 10 | if (rowSelected >= tableModel.getRowCount()) {↵ | |
16 | rowToSelect = rowSelected - 1;↵ | 11 | rowToSelect = rowSelected - 1;↵ | |
17 | }↵ | |||
18 | ↵ | 12 | }↵ | |
19 | table.setRowSelectionInterval(rowToSelect, rowToSelect);↵ | 13 | table.setRowSelectionInterval(rowToSelect, rowToSelect);↵ | |
20 | }↵ | |||
21 | ↵ | 14 | }↵ | |
22 | } | 15 | } | |
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.7 |
Clone type | Type 2 |
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 |
---|