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.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.isClippedToWindow()) {
1
if (this.cap.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
                this.background.draw(g2, this, frame, area);
4
                this.cap.draw(g2, this, frame, area);
5
                g2.setClip(savedClip);
5
                g2.setClip(savedClip);
6
            }
6
            }
7
            else {
7
            else {
8
                this.background.draw(g2, this, frame, area);
8
                this.cap.draw(g2, this, frame, area);
9
            }
9
            }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0