1311-4-8

Collection markers = (Collection) this.foregroundRangeMarkers.get(key); if (markers != null) { Iterator iterator = markers.iterator(); while (iterator.hasNext()) { Marker m = (Marker) iterator.next(); m.removeChangeListener(this); } markers.clear(); }
Collection markers = (Collection) this.foregroundRangeMarkers.get(key); if (markers != null) { Iterator iterator = markers.iterator(); while (iterator.hasNext()) { Marker m = (Marker) iterator.next(); m.removeChangeListener(this); } markers.clear(); }

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: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    Collection markers↵

1

    Collection markers↵

2

                    = (Collection) this.foregroundRangeMarkers.get(key);↵

2

                    = (Collection) this.foregroundRangeMarkers.get(key);↵

3

                if (markers != null) {↵

3

                if (markers != null) {↵

4

                    Iterator iterator = markers.iterator();↵

4

                    Iterator iterator = markers.iterator();↵

5

                    while (iterator.hasNext()) {↵

5

                    while (iterator.hasNext()) {↵

6

                        Marker m = (Marker) iterator.next();↵

6

                        Marker m = (Marker) iterator.next();↵

7

                        m.removeChangeListener(this);↵

7

                        m.removeChangeListener(this);↵

8

                    }↵

8

                    }↵

9

                    markers.clear();↵

9

                    markers.clear();↵

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