File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PiePlot3D.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PiePlot3D.java | |||
Method name: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
|
Method name: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | while (iterator.hasNext()) {↵ | 1 | while (iterator.hasNext()) {↵ | |
2 | Arc2D segment = (Arc2D) iterator.next();↵ | 2 | Arc2D segment = (Arc2D) iterator.next();↵ | |
3 | if (segment != null) {↵ | 3 | if (segment != null) {↵ | |
4 | Comparable key = getSectionKey(cat);↵ | 4 | Comparable key = getSectionKey(cat);↵ | |
5 | paint = lookupSectionPaint(key, true);↵ | 5 | paint = lookupSectionPaint(key);↵ | |
6 | outlinePaint = lookupSectionOutlinePaint(key);↵ | 6 | outlinePaint = lookupSectionOutlinePaint(key);↵ | |
7 | outlineStroke = lookupSectionOutlineStroke(key);↵ | 7 | outlineStroke = lookupSectionOutlineStroke(key);↵ | |
8 | drawSide(g2, pieArea, segment, front, back, paint, ↵ | 8 | drawSide(g2, pieArea, segment, front, back, paint, ↵ | |
9 | outlinePaint, outlineStroke, false, true);↵ | 9 | outlinePaint, outlineStroke, true, false);↵ | |
10 | }↵ | 10 | }↵ | |
11 | cat++;↵ | 11 | cat++;↵ | |
12 | } | 12 |
| |
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 54 |
Number of mapped statements | 9 |
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) | 598.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
160 | while (iterator.hasNext()) | 171 | while (iterator.hasNext()) | ||||||||||||||
161 | Arc2D segment = (Arc2D)iterator.next(); | 172 | Arc2D segment = (Arc2D)iterator.next(); | ||||||||||||||
162 | if (segment != null) | 173 | if (segment != null) | ||||||||||||||
163 | Comparable key = getSectionKey(cat); | 174 | Comparable key = getSectionKey(cat); | ||||||||||||||
164 | paint = lookupSectionPaint(key, true); |
| 175 | paint = lookupSectionPaint(key); | |||||||||||||
165 | outlinePaint = lookupSectionOutlinePaint(key); | 176 | outlinePaint = lookupSectionOutlinePaint(key); | ||||||||||||||
166 | outlineStroke = lookupSectionOutlineStroke(key); | 177 | outlineStroke = lookupSectionOutlineStroke(key); | ||||||||||||||
167 | drawSide(g2, pieArea, segment, front, back, paint, outlinePaint, outlineStroke, false, true); |
| 178 | drawSide(g2, pieArea, segment, front, back, paint, outlinePaint, outlineStroke, true, false); | |||||||||||||
168 | cat++; | 179 | cat++; |
Row | Violation |
---|---|
1 | Expression lookupSectionPaint(key,true) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression lookupSectionPaint(key) cannot be parameterized, because it has dependencies to/from statements that will be extracted |