if (dataset != null) { Integer m = (Integer) this.datasetToDomainAxisMap.get( datasetIndex); if (m == null) { // a dataset with no mapping is assigned to // axis 0 if (axisIndex == 0) { result.add(dataset); } } else { if (m.intValue() == axisIndex) { result.add(dataset);
if (dataset != null) { Integer m = (Integer) this.datasetToRangeAxisMap.get(i); if (m == null) { // a dataset with no mapping is assigned to // axis 0 if (index == 0) { result.add(dataset); } } else { if (m.intValue() == index) { result.add(dataset);
Clone fragments detected by clone detection tool
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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (dataset != null) {
1
if (dataset != null) {
2
                Integer m = (Integer) this.datasetToDomainAxisMap.get(
2
                Integer m = (Integer) this.datasetToRangeAxisMap.get(
3
                        datasetIndex);
3
i);
4
                if (m == null) {  // a dataset with no mapping is assigned to
4
                if (m == null) {  // a dataset with no mapping is assigned to
5
                                  // axis 0
5
                                  // axis 0
6
                    if (axisIndex == 0) {
6
                    if (index == 0) {
7
                        result.add(dataset);
7
                        result.add(dataset);
8
                    }
8
                    }
9
                }
9
                }
10
                else {
10
                else {
11
                    if (m.intValue() == axisIndex) {
11
                    if (m.intValue() == index) {
12
                        result.add(dataset);
12
                        result.add(dataset);
13
                    
13
                    
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0