if (plot.getOrientation() == PlotOrientation.VERTICAL) {
shape = new Rectangle2D.Double(transX1 - 3, transY1 - 3,
6.0, 6.0);
}
else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {
shape = new Rectangle2D.Double(transY1 - 3, transX1 - 3,
6.0, 6.0);
if (orientation == PlotOrientation.VERTICAL) {
shape = new Rectangle2D.Double(transX1 - 2, transY1 - 2,
4.0, 4.0);
}
else if (orientation == PlotOrientation.HORIZONTAL) {
shape = new Rectangle2D.Double(transY1 - 2, transX1 - 2,
4.0, 4.0);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/StackedXYAreaRenderer.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYStepAreaRenderer.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (plot.getOrientation() == PlotOrientation.VERTICAL) {↵ | | 1 | if (orientation == PlotOrientation.VERTICAL) {↵
|
2 | shape = new Rectangle2D.Double(transX1 - 3, transY1 - 3,↵ | | 2 | shape = new Rectangle2D.Double(transX1 - 2, transY1 - 2,↵
|
3 | 6.0, 6.0);↵ | | 3 | 4.0, 4.0);↵
|
4 | }↵ | | 4 | }↵
|
5 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {↵ | | 5 | else if (orientation == PlotOrientation.HORIZONTAL) {↵
|
6 | shape = new Rectangle2D.Double(transY1 - 3, transX1 - 3,↵ | | 6 | shape = new Rectangle2D.Double(transY1 - 2, transX1 - 2,↵
|
7 | 6.0, 6.0);↵ | | 7 | 4.0, 4.0);↵
|
8 | | | 8 |
|
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 | |
Number of node comparisons | 0 |