if (isItemPass(pass)) {
// setup for collecting optional entity info...
EntityCollection entities = null;
if (info != null) {
entities = info.getOwner().getEntityCollection();
}
drawSecondaryPass(g2, plot, dataset, pass, series, item,
domainAxis, dataArea, rangeAxis, crosshairState, entities);
}
if (isItemPass(pass)) {
// setup for collecting optional entity info...
EntityCollection entities = null;
if (info != null) {
entities = info.getOwner().getEntityCollection();
}
drawSecondaryPass(g2, plot, dataset, pass, series, item,
domainAxis, dataArea, rangeAxis, crosshairState, entities);
}
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/DeviationRenderer.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYLineAndShapeRenderer.java
|
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
|
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | if (isItemPass(pass)) {↵ | | 1 | if (isItemPass(pass)) {↵
|
|
2 | // setup for collecting optional entity info...↵ | | 2 | // setup for collecting optional entity info...↵
|
3 | EntityCollection entities = null;↵ | | 3 | EntityCollection entities = null;↵
|
4 | if (info != null) {↵ | | 4 | if (info != null) {↵
|
5 | entities = info.getOwner().getEntityCollection();↵ | | 5 | entities = info.getOwner().getEntityCollection();↵
|
6 | }↵ | | 6 | }↵
|
|
7 | drawSecondaryPass(g2, plot, dataset, pass, series, item,↵ | | 7 | drawSecondaryPass(g2, plot, dataset, pass, series, item,↵
|
8 | domainAxis, dataArea, rangeAxis, crosshairState, entities);↵ | | 8 | domainAxis, dataArea, rangeAxis, crosshairState, entities);↵
|
9 | } | | 9 | }
|
See real code fragment |
|
See real code fragment |
Summary
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 different classes having the same super class |
Number of node comparisons | 13 |
-
{Refactorable}
Mapping Summary
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) | 1.4 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
49 | else if (isItemPass(pass)) | | 13 | else if (isItemPass(pass)) |
50 | EntityCollection entities = null; | | 14 | EntityCollection entities = null; |
51 | | | 15 | |
52 | entities = info.getOwner().getEntityCollection(); | | 16 | entities = info.getOwner().getEntityCollection(); |
53 | drawSecondaryPass(g2, plot, dataset, pass, series, item, domainAxis, dataArea, rangeAxis, crosshairState, entities); | | 17 | drawSecondaryPass(g2, plot, dataset, pass, series, item, domainAxis, dataArea, rangeAxis, crosshairState, entities); |
Precondition Violations (0)
Row |
Violation |