1272-1-4

if (result == null) { result = new LegendItemCollection(); if (this.subplots != null) { Iterator iterator = this.subplots.iterator(); while (iterator.hasNext()) { CategoryPlot plot = (CategoryPlot) iterator.next(); LegendItemCollection more = plot.getLegendItems(); result.addAll(more);
if (result == null) { result = new LegendItemCollection(); if (this.subplots != null) { Iterator iterator = this.subplots.iterator(); while (iterator.hasNext()) { XYPlot plot = (XYPlot) iterator.next(); LegendItemCollection more = plot.getLegendItems(); result.addAll(more);

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainCategoryPlot.java |  | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedRangeXYPlot.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    if (result == null) {↵

1

    if (result == null) {↵

2

                result = new LegendItemCollection();↵

2

                result = new LegendItemCollection();↵

3

                if (this.subplots != null) {↵

3

                if (this.subplots != null) {↵

4

                    Iterator iterator = this.subplots.iterator();↵

4

                    Iterator iterator = this.subplots.iterator();↵

5

                    while (iterator.hasNext()) {↵

5

                    while (iterator.hasNext()) {↵

6

                        CategoryPlot plot = (CategoryPlot) iterator.next();↵

6

                        XYPlot plot = (XYPlot) iterator.next();↵

7

                        LegendItemCollection more = plot.getLegendItems();↵

7

                        LegendItemCollection more = plot.getLegendItems();↵

8

                        result.addAll(more);↵

8

                        result.addAll(more);↵

9

9

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