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/protocol/http/gui/HTTPArgumentsPanel.java | |||
Method name: void fixSize(TableColumn)
|
Method name: void fixSize(TableColumn)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | column.sizeWidthToFit();↵ | 1 | column.sizeWidthToFit();↵ | |
2 | ↵ | 2 | // column.setMinWidth(column.getWidth());↵ | |
3 | column.setMaxWidth(column.getWidth() * 2);↵ | 3 | column.setMaxWidth((int) (column.getWidth() * ↵ | |
4 | ↵ | 4 | 1.5));↵ | |
5 | column.setWidth(column.getMaxWidth());↵ | 5 | column.setWidth(column.getMaxWidth());↵ | |
6 | column.setResizable(false); | 6 | column.setResizable(false); | |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | column.sizeWidthToFit(); | 1 | column.sizeWidthToFit(); | |||||||||||||
2 | column.setMaxWidth(column.getWidth() * 2); |
| 2 | column.setMaxWidth((int)(column.getWidth() * 1.5)); | ||||||||||||
3 | column.setWidth(column.getMaxWidth()); | 3 | column.setWidth(column.getMaxWidth()); | |||||||||||||
4 | column.setResizable(false); | 4 | column.setResizable(false); |
Row | Violation |
---|---|
1 | Expression column.getWidth() * 2 cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression (int)(column.getWidth() * 1.5) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | The refactoring of the clones is infeasible, because classes org.apache.jmeter.protocol.http.gui.HTTPFileArgsPanel and org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel do not have a common superclass |