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 (current.isVisible()) {↵ | 1 | if (current.isVisible()) {↵ | |
2 | if (current.isClippedToWindow()) {↵ | 2 | if (current.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 | current.draw(g2, this, frame, area);↵ | 5 | current.draw(g2, this, frame, area);↵ | |
6 | g2.setClip(savedClip);↵ | 6 | g2.setClip(savedClip);↵ | |
7 | }↵ | 7 | }↵ | |
8 | else {↵ | 8 | else {↵ | |
9 | current.draw(g2, this, frame, area);↵ | 9 | current.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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 38 |
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) | 18.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14 | if (current.isVisible()) |
| 24 | if (current.isVisible()) | ||||||||||
15 | if (current.isClippedToWindow()) |
| 25 | if (current.isClippedToWindow()) | ||||||||||
16 | Shape savedClip = g2.getClip(); | 26 | Shape savedClip = g2.getClip(); | |||||||||||
17 | g2.clip(this.dialFrame.getWindow(frame)); | 27 | g2.clip(this.dialFrame.getWindow(frame)); | |||||||||||
18 | current.draw(g2, this, frame, area); |
| 28 | current.draw(g2, this, frame, area); | ||||||||||
19 | g2.setClip(savedClip); | 29 | g2.setClip(savedClip); | |||||||||||
else | else | |||||||||||||
20 | current.draw(g2, this, frame, area); |
| 30 | current.draw(g2, this, frame, area); |
Row | Violation |
---|