currColor = ColorHelper.changeColorCyclicIncrement(currColor, 40);
g.setColor(currColor);
if (!previousPtsAlloc) {
// If first dot, just draw the point
g.drawLine(x % width, d.height - data, x % width, d.height - data - 1);
currColor = ColorHelper.changeColorCyclicIncrement(currColor, 100);
g.setColor(currColor);
if (!previousPtsAlloc) {
// If first dot, just draw the point
g.drawLine(x % width, d.height - data, x % width, d.height - data - 1);
Clone fragments detected by clone detection tool
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 |
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 | Clones are in the same method |
Number of node comparisons | 4 |