1455-1-2

if (current.isClippedToWindow()) { Shape savedClip = g2.getClip(); g2.clip(this.dialFrame.getWindow(frame)); current.draw(g2, this, frame, area); g2.setClip(savedClip); } else { current.draw(g2, this, frame, area); }
if (current.isClippedToWindow()) { Shape savedClip = g2.getClip(); g2.clip(this.dialFrame.getWindow(frame)); current.draw(g2, this, frame, area); g2.setClip(savedClip); } else { current.draw(g2, this, frame, area); }

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

1

    if (current.isClippedToWindow()) {↵

1

    if (current.isClippedToWindow()) {↵

2

                        Shape savedClip = g2.getClip();↵

2

                        Shape savedClip = g2.getClip();↵

3

                        g2.clip(this.dialFrame.getWindow(frame));↵

3

                        g2.clip(this.dialFrame.getWindow(frame));↵

4

                        current.draw(g2, this, frame, area);↵

4

                        current.draw(g2, this, frame, area);↵

5

                        g2.setClip(savedClip);↵

5

                        g2.setClip(savedClip);↵

6

                    }↵

6

                    }↵

7

                    else {↵

7

                    else {↵

8

                        current.draw(g2, this, frame, area);↵

8

                        current.draw(g2, this, frame, area);↵

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