File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/GraphAccum.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/GraphAccum.java | |||
Method name: void drawSample(int, SampleResult, Graphics)
|
Method name: void drawSample(int, SampleResult, Graphics)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | currColor = ColorHelper.changeColorCyclicIncrement(currColor, 40);↵ | 1 | currColor = ColorHelper.changeColorCyclicIncrement(currColor, 100);↵ | |
2 | g.setColor(currColor);↵ | 2 | g.setColor(currColor);↵ | |
3 | if (!previousPtsAlloc) {↵ | 3 | if (!previousPtsAlloc) {↵ | |
4 | // If first dot, just draw the point↵ | 4 | // If first dot, just draw the point↵ | |
5 | g.drawLine(x % width, d.height - data, x % width, d.height - data - 1); | 5 | g.drawLine(x % width, d.height - data, x % width, d.height - data - 1); | |
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 the same method |
Number of node comparisons | 4 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39 | currColor = ColorHelper.changeColorCyclicIncrement(currColor, 40); | | |||||||||||||||||||
| 66 | if (!previousPtsAlloc) | |||||||||||||||||||
40 | g.setColor(currColor); |
| 67 | g.drawLine(x % width, d.height - data, x % width, d.height - data - 1); |
Row | Violation |
---|---|
1 | Expression g.setColor(currColor) is a void method call, and thus it cannot be parameterized |
2 | Expression g.drawLine(x % width,d.height - data,x % width,d.height - data - 1) is a void method call, and thus it cannot be parameterized |
3 | Expression g.setColor(currColor) is a void method call, and thus it cannot be parameterized |
4 | Expression g.drawLine(x % width,d.height - data,x % width,d.height - data - 1) is a void method call, and thus it cannot be parameterized |