File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/LineAndShapeRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/StandardXYItemRenderer.java | |||
Method name: boolean getSeriesShapesFilled(int)
|
Method name: boolean getItemShapeFilled(int, int)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (this.shapesFilled != null) {↵ | 1 | if (this.shapesFilled != null) {↵ | |
2 | return this.shapesFilled.booleanValue();↵ | 2 | return this.shapesFilled.booleanValue();↵ | |
3 | }↵ | 3 | }↵ | |
4 | // otherwise look up the paint table↵ | 4 | // otherwise look up the paint table↵ | |
5 | Boolean flag = this.seriesShapesFilled.getBoolean(series);↵ | 5 | Boolean flag = this.seriesShapesFilled.getBoolean(series);↵ | |
6 | if (flag != null) {↵ | 6 | if (flag != null) {↵ | |
7 | return flag.booleanValue();↵ | 7 | return flag.booleanValue();↵ | |
8 | }↵ | 8 | }↵ | |
9 | else {↵ | 9 | else {↵ | |
10 | return this.baseShapesFilled;↵ | 10 | return this.baseShapesFilled;↵ | |
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.5 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 16 |
Number of mapped statements | 6 |
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) | 2.0 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | if (this.shapesFilled != null) | 1 | if (this.shapesFilled != null) | |
2 | return this.shapesFilled.booleanValue(); | 2 | return this.shapesFilled.booleanValue(); | |
3 | Boolean flag = this.seriesShapesFilled.getBoolean(series); | 3 | Boolean flag = this.seriesShapesFilled.getBoolean(series); | |
4 | if (flag != null) | 4 | if (flag != null) | |
5 | return flag.booleanValue(); | 5 | return flag.booleanValue(); | |
else | else | |||
6 | return this.baseShapesFilled; | 6 | return this.baseShapesFilled; |
Row | Violation |
---|