File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/AxisGraph.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/LineGraph.java | |||
Method name: void paintComponent(Graphics)
|
Method name: void paintComponent(Graphics)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 3 | |||
1 | this.paint_counter = -1;↵ | |||
1 | if (data != null && this.title != null && this.xAxisLabels != null &&↵ | 2 | if (data != null && this.title != null && this.xAxisLabels != null &&↵ | |
2 | this.xAxisTitle != null && this.yAxisLabel != null &&↵ | 3 | this.xAxisTitle != null && this.yAxisLabel != null &&↵ | |
3 | this.yAxisTitle != null) {↵ | 4 | this.yAxisTitle != null) {↵ | |
4 | drawSample(this.title,this.maxLength,this.xAxisLabels,this.xAxisTitle,↵ | 5 | drawSample(this.title,this.xAxisLabels,this.xAxisTitle,↵ | |
5 | this.yAxisTitle,this.data,this.width,this.height,g);↵ | 6 | this.yAxisTitle,this.data,this.width,this.height,g);↵ | |
6 | } | 7 |
| |
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.7 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 4 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 1.4 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | this.paint_counter = -1; | ||||||||||||||||
1 | if (data != null && this.title != null && this.xAxisLabels != null && this.xAxisTitle != null && this.yAxisLabel != null && this.yAxisTitle != null) |
| 2 | if (data != null && this.title != null && this.xAxisLabels != null && this.xAxisTitle != null && this.yAxisLabel != null && this.yAxisTitle != null) | ||||||||||||||
2 | drawSample(this.title, this.maxLength, this.xAxisLabels, this.xAxisTitle, this.yAxisTitle, this.data, this.width, this.height, g); |
| 3 | drawSample(this.title, this.xAxisLabels, this.xAxisTitle, this.yAxisTitle, this.data, this.width, this.height, g); |
Row | Violation |
---|---|
1 | Type java.lang.String of variable this.yAxisLabel does not match with type java.lang.String[] of variable this.yAxisLabel |
2 | Expression drawSample(this.title,this.maxLength,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression drawSample(this.title,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression drawSample(this.title,this.maxLength,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g) is a void method call, and thus it cannot be parameterized |
5 | Expression drawSample(this.title,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g) is a void method call, and thus it cannot be parameterized |