if (getPlotLines()) {
if (item > 0) {
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 (getPlotLines()) {
if (item > 0) {
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 (getPlotLines()) {↵ | | 1 | if (getPlotLines()) {↵
|
2 | if (item > 0) {↵ | | 2 | if (item > 0) {↵
|
3 | if (plot.getOrientation() == PlotOrientation.VERTICAL) {↵ | | 3 | if (plot.getOrientation() == PlotOrientation.VERTICAL) {↵
|
4 | areaState.line.setLine(transX0, transY0, transX1, ↵ | | 4 | state.workingLine.setLine(transX0, transY0, transX1, ↵
|
5 | transY1);↵ | | 5 | transY1);↵
|
6 | }↵ | | 6 | }↵
|
7 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {↵ | | 7 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {↵
|
8 | areaState.line.setLine(transY0, transX0, transY1, ↵ | | 8 | state.workingLine.setLine(transY0, transX0, transY1, ↵
|
9 | transX1);↵ | | 9 | transX1);↵
|
10 | }↵ | | 10 | }↵
|
11 | g2.draw(areaState.line);↵ | | 11 | g2.draw(state.workingLine);↵
|
12 | | | 12 |
|
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 |