File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java | |||
Method name: List datasetsMappedToDomainAxis(int)
|
Method name: List datasetsMappedToRangeAxis(int)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | Object dataset = this.datasets.get(datasetIndex);↵ | 1 | Object dataset = this.datasets.get(i);↵ | |
2 | if (dataset != null) {↵ | 2 | if (dataset != null) {↵ | |
3 | Integer m = (Integer) this.datasetToDomainAxisMap.get(↵ | 3 | Integer m = (Integer) this.datasetToRangeAxisMap.get(↵ | |
4 | datasetIndex);↵ | 4 | i);↵ | |
5 | if (m == null) { // a dataset with no mapping is assigned to↵ | 5 | if (m == null) { // a dataset with no mapping is assigned to↵ | |
6 | // axis 0↵ | 6 | // axis 0↵ | |
7 | if (axisIndex == 0) {↵ | 7 | if (index == 0) {↵ | |
8 | result.add(dataset);↵ | 8 | result.add(dataset);↵ | |
9 | }↵ | 9 | }↵ | |
10 | }↵ | 10 | }↵ | |
11 | else {↵ | 11 | else {↵ | |
12 | if (m.intValue() == axisIndex) {↵ | 12 | if (m.intValue() == index) {↵ | |
13 | result.add(dataset);↵ | 13 | result.add(dataset);↵ | |
14 | }↵ | 14 | }↵ | |
15 | }↵ | 15 | }↵ | |
16 | } | 16 |
| |
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.8 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 20 |
Number of mapped statements | 8 |
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) | 9.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | Object dataset = this.datasets.get(datasetIndex); |
| 3 | Object dataset = this.datasets.get(i); | |||||||||||||
4 | if (dataset != null) | 4 | if (dataset != null) | ||||||||||||||
5 | Integer m = (Integer)this.datasetToDomainAxisMap.get(datasetIndex); |
| 5 | Integer m = (Integer)this.datasetToRangeAxisMap.get(i); | |||||||||||||
6 | if (m == null) | 6 | if (m == null) | ||||||||||||||
7 | if (axisIndex == 0) |
| 7 | if (index == 0) | |||||||||||||
8 | result.add(dataset); | 8 | result.add(dataset); | ||||||||||||||
else | else | ||||||||||||||||
9 | if (m.intValue() == axisIndex) |
| 9 | if (m.intValue() == index) | |||||||||||||
10 | result.add(dataset); | 10 | result.add(dataset); |
Row | Violation |
---|