File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYStepRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYStepRenderer.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: 4 | Number of AST nodes: 4 | |||
1 | double transXs = transX0 + (getStepPoint()↵ | 1 | double transXs = transX0 + (getStepPoint()↵ | |
2 | * (transX1 - transX0));↵ | 2 | * (transX1 - transX0));↵ | |
3 | drawLine(g2, state.workingLine, transY0, transX0, transY0,↵ | 3 | drawLine(g2, state.workingLine, transX0, transY0, transXs,↵ | |
4 | transXs);↵ | 4 | transY0);↵ | |
5 | drawLine(g2, state.workingLine, transY0, transXs, transY1,↵ | 5 | drawLine(g2, state.workingLine, transXs, transY0, transXs,↵ | |
6 | transXs);↵ | 6 | transY1);↵ | |
7 | drawLine(g2, state.workingLine, transY1, transXs, transY1,↵ | 7 | drawLine(g2, state.workingLine, transXs, transY1, transX1,↵ | |
8 | transX1); | 8 | transY1); | |
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 | 16 |
Number of mapped statements | 4 |
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 | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22 | double transXs = transX0 + (getStepPoint() * (transX1 - transX0)); | 29 | double transXs = transX0 + (getStepPoint() * (transX1 - transX0)); | |||||||||||||||||||||||
23 | drawLine(g2, state.workingLine, transY0, transX0, transY0, transXs); |
| 31 | drawLine(g2, state.workingLine, transXs, transY0, transXs, transY1); | ||||||||||||||||||||||
24 | drawLine(g2, state.workingLine, transY0, transXs, transY1, transXs); |
| 32 | drawLine(g2, state.workingLine, transXs, transY1, transX1, transY1); | ||||||||||||||||||||||
25 | drawLine(g2, state.workingLine, transY1, transXs, transY1, transX1); |
| 30 | drawLine(g2, state.workingLine, transX0, transY0, transXs, transY0); |
Row | Violation |
---|---|
1 | Expression transXs cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression transXs cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression transXs cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression transXs cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression transXs cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression transXs cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression transXs cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression transXs cannot be parameterized, because it has dependencies to/from statements that will be extracted |