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: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
|
Method name: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
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 | }↵ | |
11 | } | 11 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 37 |
Number of mapped statements | 7 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 6.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | if (this.background != null && this.background.isVisible()) |
| 31 | if (this.cap != null && this.cap.isVisible()) | |||||||||||||
5 | if (this.background.isClippedToWindow()) |
| 32 | if (this.cap.isClippedToWindow()) | |||||||||||||
6 | Shape savedClip = g2.getClip(); | 33 | Shape savedClip = g2.getClip(); | ||||||||||||||
7 | g2.clip(this.dialFrame.getWindow(frame)); | 34 | g2.clip(this.dialFrame.getWindow(frame)); | ||||||||||||||
8 | this.background.draw(g2, this, frame, area); |
| 35 | this.cap.draw(g2, this, frame, area); | |||||||||||||
9 | g2.setClip(savedClip); | 36 | g2.setClip(savedClip); | ||||||||||||||
else | else | ||||||||||||||||
10 | this.background.draw(g2, this, frame, area); |
| 37 | this.cap.draw(g2, this, frame, area); |
Row | Violation |
---|---|
1 | Expression this.background cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression this.cap cannot be parameterized, because it has dependencies to/from statements that will be extracted |