File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/Plot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/Plot.java | |||
Method name: void fillBackground(Graphics2D, Rectangle2D, PlotOrientation)
|
Method name: void fillBackground(Graphics2D, Rectangle2D, PlotOrientation)
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | p = new GradientPaint((float) area.getCenterX(),↵ | 1 | p = new GradientPaint((float) area.getMinX(),↵ | |
2 | (float) area.getMaxY(), gp.getColor1(),↵ | 2 | (float) area.getCenterY(), gp.getColor1(),↵ | |
3 | (float) area.getCenterX(), (float) area.getMinY(),↵ | 3 | (float) area.getMaxX(), (float) area.getCenterY(),↵ | |
4 | gp.getColor2()); | 4 |
| |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | p = new GradientPaint((float)area.getCenterX(), (float)area.getMaxY(), gp.getColor1(), (float)area.getCenterX(), (float)area.getMinY(), gp.getColor2()); |
| 11 | p = new GradientPaint((float)area.getMinX(), (float)area.getCenterY(), gp.getColor1(), (float)area.getMaxX(), (float)area.getCenterY(), gp.getColor2()); |
Row | Violation |
---|