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: 5 | Number of AST nodes: 6 | |||
1 | if (segment != null) {↵ | |||
1 | Comparable key = getSectionKey(cat);↵ | 2 | Comparable key = getSectionKey(cat);↵ | |
2 | paint = lookupSectionPaint(key, true);↵ | 3 | paint = lookupSectionPaint(key);↵ | |
3 | outlinePaint = lookupSectionOutlinePaint(key);↵ | 4 | outlinePaint = lookupSectionOutlinePaint(key);↵ | |
4 | outlineStroke = lookupSectionOutlineStroke(key);↵ | 5 | outlineStroke = lookupSectionOutlineStroke(key);↵ | |
5 | drawSide(g2, pieArea, segment, front, back, paint, ↵ | 6 | drawSide(g2, pieArea, segment, front, back, paint, ↵ | |
6 | outlinePaint, outlineStroke, false, true); | 7 | outlinePaint, outlineStroke, true, false);↵ | |
8 |
| |||
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 31 |
Number of mapped statements | 5 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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); |
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 |