1797-3-4

for (int i = 0; i < this.datasets.size(); i++) { if (this.datasets.get(i) == dataset) { result = (CategoryItemRenderer) this.renderers.get(i); break; } }
for (int i = 0; i < this.domainAxes.size(); i++) { ValueAxis axis = (ValueAxis) this.domainAxes.get(i); if (axis != null) { axis.removeChangeListener(this); } }

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java |  | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
Method name: `CategoryItemRenderer getRendererForDataset(CategoryDataset)` |  | Method name: `void clearDomainAxes()`
Number of AST nodes: 4 |  | Number of AST nodes: 4

1

    for (int i = 0; i < this.datasets.size(); i++) {↵

1

    for (int i = 0; i < this.domainAxes.size(); i++) {↵

2

                if (this.datasets.get(i) == dataset) {↵

2

                ↵

3

                    result = (CategoryItemRenderer) this.renderers.get(i);↵

4

                    break↵

3

    ValueAxis axis = (ValueAxis) this.domainAxes.get(i);↵

4

                if (axis != null) {↵

5

    ;↵

5

                    axis.removeChangeListener(this);↵

6

                }↵

6

                }↵

7

            }

7

            }

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 having the same super class
Number of node comparisons | 1