int getHeight() {
int h = getPropertyAsInt(REPORT_CHART_HEIGHT);
if (h <= 0) {
return DEFAULT_HEIGHT;
} else {
return h;
}
}
/**
* set the height of the graph
* @param height
*/
public void setHeight(String height) {
setProperty(REPORT_CHART_HEIGHT,String.valueOf(height));
int getWidth() {
int w = getPropertyAsInt(REPORT_CHART_WIDTH);
if (w <= 0) {
return DEFAULT_WIDTH;
} else {
return w;
}
}
/**
* set the width of the graph
* @param width
*/
public void setWidth(String width) {
setProperty(REPORT_CHART_WIDTH,String.valueOf(width));
Clone fragments detected by clone detection tool
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:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | int getHeight() {↵ | | 1 | int getWidth() {↵
|
2 | int h = getPropertyAsInt(REPORT_CHART_HEIGHT); ↵ | | 2 | int w = getPropertyAsInt(REPORT_CHART_WIDTH);↵
|
3 | if (h <= 0) {↵ | | 3 | if (w <= 0) {↵
|
4 | return DEFAULT_HEIGHT;↵ | | 4 | return DEFAULT_WIDTH;↵
|
5 | } else {↵ | | 5 | } else {↵
|
6 | return h;↵ | | 6 | return w;↵
|
7 | }↵ | | 7 | }↵
|
8 | }↵ | | 8 | }↵
|
| | | 9 | ↵
|
9 | /**↵ | | 10 | /**↵
|
10 | * set the height of the graph↵ | | 11 | * set the width of the graph↵
|
11 | * @param height↵ | | 12 | * @param width↵
|
12 | */↵ | | 13 | */↵
|
13 | public void setHeight(String height) {↵ | | 14 | public void setWidth(String width) {↵
|
14 | setProperty(REPORT_CHART_HEIGHT,String.valueOf(height));↵ | | 15 | setProperty(REPORT_CHART_WIDTH,String.valueOf(width));↵
|
15 | | | 16 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |