File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/AbstractChart.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/AbstractChart.java | |||
Method name: int getHeight()
|
Method name: int getWidth()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | int h = getPropertyAsInt(REPORT_CHART_HEIGHT); ↵ | 1 | int w = getPropertyAsInt(REPORT_CHART_WIDTH);↵ | |
2 | if (h <= 0) {↵ | 2 | if (w <= 0) {↵ | |
3 | return DEFAULT_HEIGHT;↵ | 3 | return DEFAULT_WIDTH;↵ | |
4 | } else {↵ | 4 | } else {↵ | |
5 | return h;↵ | 5 | return w;↵ | |
6 | } | 6 |
| |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 10 |
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) | 10.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | int h = getPropertyAsInt(REPORT_CHART_HEIGHT); |
| 1 | int w = getPropertyAsInt(REPORT_CHART_WIDTH); | |||||||||||||
2 | if (h <= 0) |
| 2 | if (w <= 0) | |||||||||||||
3 | return DEFAULT_HEIGHT; |
| 3 | return DEFAULT_WIDTH; | |||||||||||||
else | else | ||||||||||||||||
4 | return h; |
| 4 | return w; |
Row | Violation |
---|