if (plot.getOrientation() == PlotOrientation.VERTICAL) {
areaState.line.setLine(transX0, transY0, transX1, transY1);
}
else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {
areaState.line.setLine(transY0, transX0, transY1, transX1);
}
g2.draw(areaState.line);
if (plot.getOrientation() == PlotOrientation.VERTICAL) {
state.workingLine.setLine(transX0, transY0, transX1,
transY1);
}
else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {
state.workingLine.setLine(transY0, transX0, transY1,
transX1);
}
g2.draw(state.workingLine);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYAreaRenderer.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYAreaRenderer2.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (plot.getOrientation() == PlotOrientation.VERTICAL) {↵ | | 1 | if (plot.getOrientation() == PlotOrientation.VERTICAL) {↵
|
2 | areaState.line.setLine(transX0, transY0, transX1, ↵ | | 2 | state.workingLine.setLine(transX0, transY0, transX1, ↵
|
3 | transY1);↵ | | 3 | transY1);↵
|
4 | }↵ | | 4 | }↵
|
5 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {↵ | | 5 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {↵
|
6 | areaState.line.setLine(transY0, transX0, transY1, ↵ | | 6 | state.workingLine.setLine(transY0, transX0, transY1, ↵
|
7 | transX1);↵ | | 7 | transX1);↵
|
8 | }↵ | | 8 | }↵
|
9 | g2.draw(areaState.line);↵ | | 9 | g2.draw(state.workingLine);↵
|
10 | | | 10 |
|
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 |