1322-1-2

if (this.background != null && this.background.isVisible()) { if (this.background.isClippedToWindow()) { Shape savedClip = g2.getClip(); g2.clip(this.dialFrame.getWindow(frame)); this.background.draw(g2, this, frame, area); g2.setClip(savedClip); } else { this.background.draw(g2, this, frame, area);
if (this.cap != null && this.cap.isVisible()) { if (this.cap.isClippedToWindow()) { Shape savedClip = g2.getClip(); g2.clip(this.dialFrame.getWindow(frame)); this.cap.draw(g2, this, frame, area); g2.setClip(savedClip); } else { this.cap.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 (this.background != null && this.background.isVisible()) {↵

1

    if (this.cap != null && this.cap.isVisible()) {↵

2

                if (this.background.isClippedToWindow()) {↵

2

                if (this.cap.isClippedToWindow()) {↵

3

                    Shape savedClip = g2.getClip();↵

3

                    Shape savedClip = g2.getClip();↵

4

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

4

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

5

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

5

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

6

                    g2.setClip(savedClip);↵

6

                    g2.setClip(savedClip);↵

7

                }↵

7

                }↵

8

                else {↵

8

                else {↵

9

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

9

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

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