block.draw(g2, (float) anchorPoint.getX(),
(float) anchorPoint.getY(), position.getLabelAnchor(),
(float) anchorPoint.getX(), (float) anchorPoint.getY(),
position.getAngle());
Shape bounds = block.calculateBounds(g2,
(float) anchorPoint.getX(), (float) anchorPoint.getY(),
position.getLabelAnchor(), (float) anchorPoint.getX(),
(float) anchorPoint.getY(), position.getAngle());
p = new GradientPaint((float) area.getMinX(),
(float) area.getCenterY(), gp.getColor1(),
(float) area.getMaxX(), (float) area.getCenterY(),
gp.getColor2());
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/CategoryAxis.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/Plot.java
|
Method name: AxisState drawCategoryLabels(Graphics2D, Rectangle2D, Rectangle2D, RectangleEdge, AxisState, PlotRenderingInfo)
|
|
Method name: void fillBackground(Graphics2D, Rectangle2D, PlotOrientation)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 1
|
|
1 | block.draw(g2, (float) anchorPoint.getX(),↵ | | |
|
2 | (float) anchorPoint.getY(), position.getLabelAnchor(),↵ | | |
|
3 | (float) anchorPoint.getX(), (float) anchorPoint.getY(),↵ | | |
|
4 | position.getAngle());↵ | | |
|
5 | Shape bounds = block.calculateBounds(g2↵ | | 1 | p = new GradientPaint((float) area.getMinX(),↵
|
6 | ,↵ | | 2 | (float) area.getCenterY(), gp.getColor1(),↵
|
7 | (float) anchorPoint.getX(), (float) anchorPoint.getY(),↵ | | 3 | (float) area.getMaxX(), (float) a↵
|
8 | position.getLabelAnchor(), (float) anchorPoint.getX(),↵ | | |
|
9 | (float) anchorPoint.getY(), position.getAngle↵ | | 4 | rea.getCenterY(),↵
|
10 | ()); | | 5 | gp.getColor2());
|
See real code fragment |
|
See real code fragment |
Summary
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 different classes |
Number of node comparisons | 0 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
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 | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |