File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/AbstractRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/AbstractRenderer.java | |||
Method name: ItemLabelPosition getSeriesPositiveItemLabelPosition(int)
|
Method name: ItemLabelPosition getSeriesNegativeItemLabelPosition(int)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (this.positiveItemLabelPosition != null) {↵ | 1 | if (this.negativeItemLabelPosition != null) {↵ | |
2 | return this.positiveItemLabelPosition;↵ | 2 | return this.negativeItemLabelPosition;↵ | |
3 | }↵ | 3 | }↵ | |
4 | // otherwise look up the position table↵ | 4 | // otherwise look up the position list↵ | |
5 | ItemLabelPosition position = (ItemLabelPosition)↵ | 5 | ItemLabelPosition position = (ItemLabelPosition)↵ | |
6 | this.positiveItemLabelPositionList.get(series);↵ | 6 | this.negativeItemLabelPositionList.get(series);↵ | |
7 | if (position == null) {↵ | 7 | if (position == null) {↵ | |
8 | position = this.basePositiveItemLabelPosition;↵ | 8 | position = this.baseNegativeItemLabelPosition;↵ | |
9 | }↵ | 9 | }↵ | |
10 | return position; | 10 |
| |
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 declared in the same class |
Number of node comparisons | 14 |
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.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (this.positiveItemLabelPosition != null) |
| 1 | if (this.negativeItemLabelPosition != null) | ||||||||||
2 | return this.positiveItemLabelPosition; |
| 2 | return this.negativeItemLabelPosition; | ||||||||||
3 | ItemLabelPosition position = (ItemLabelPosition)this.positiveItemLabelPositionList.get(series); |
| 3 | ItemLabelPosition position = (ItemLabelPosition)this.negativeItemLabelPositionList.get(series); | ||||||||||
4 | if (position == null) | 4 | if (position == null) | |||||||||||
5 | position = this.basePositiveItemLabelPosition; |
| 5 | position = this.baseNegativeItemLabelPosition; | ||||||||||
6 | return position; | 6 | return position; |
Row | Violation |
---|