for (int i = entityCount - 1; i >= 0; i--) {
ChartEntity entity = (ChartEntity) this.entities.get(i);
if (entity.getArea().contains(x, y)) {
return entity;
}
}
for (int i = 0; i < rangeAxisCount; i++) {
Axis axis = (Axis) this.rangeAxes.get(i);
if (axis != null) {
axis.setPlot(this);
axis.addChangeListener(this);
}
}
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/entity/StandardEntityCollection.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
|
Method name: ChartEntity getEntity(double, double)
|
|
Method name: void readObject(ObjectInputStream)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 5
|
|
1 | for (int i = entityCount - 1; i >= 0; i--) {↵ | | 1 | for (int i = 0; i < rangeAxisCount; i++) {↵
|
2 | ChartEntity entity = (ChartEntity) this.entities.get(i);↵ | | 2 | ↵
|
3 | if (entity.getArea().contains(x, y)) {↵ | | |
|
4 | return entity↵ | | 3 | Axis axis = (Axis) this.rangeAxes.get(i);↵
|
| | | 4 | if (axis != null) {↵
|
| | | 5 | axis.setPlot(this);↵
|
5 | ;↵ | | 6 | axis.addChangeListener(this);↵
|
6 | }↵ | | 7 | }↵
|
7 | } | | 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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |