1208-1-2

public Number getValue(Comparable series, Comparable category) { int seriesIndex = getSeriesIndex(series); if (seriesIndex < 0) { throw new UnknownKeyException("Unknown 'series' key."); } int itemIndex = getColumnIndex(category); if (itemIndex < 0) { throw new UnknownKeyException("Unknown 'category' key."); } return getValue(seriesIndex, itemIndex);
public Number getStartValue(Comparable series, Comparable category) { int seriesIndex = getSeriesIndex(series); if (seriesIndex < 0) { throw new UnknownKeyException("Unknown 'series' key."); } int itemIndex = getColumnIndex(category); if (itemIndex < 0) { throw new UnknownKeyException("Unknown 'category' key."); } return getStartValue(seriesIndex, itemIndex);

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/data/category/DefaultIntervalCategoryDataset.java |  | File path: /jfreechart-1.0.10/src/org/jfree/data/category/DefaultIntervalCategoryDataset.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    public Number getValue(Comparable series, Comparable category) {↵

1

    public Number getStartValue(Comparable series, Comparable category) {↵

2

            int seriesIndex = getSeriesIndex(series);↵

2

            int seriesIndex = getSeriesIndex(series);↵

3

            if (seriesIndex < 0) {↵

3

            if (seriesIndex < 0) {↵

4

                throw new UnknownKeyException("Unknown 'series' key.");↵

4

                throw new UnknownKeyException("Unknown 'series' key.");↵

5

            }↵

5

            }↵

6

            int itemIndex = getColumnIndex(category);↵

6

            int itemIndex = getColumnIndex(category);↵

7

            if (itemIndex < 0) {↵

7

            if (itemIndex < 0) {↵

8

                throw new UnknownKeyException("Unknown 'category' key.");↵

8

                throw new UnknownKeyException("Unknown 'category' key.");↵

9

            }↵

9

            }↵

10

            return getValue(seriesIndex, itemIndex);↵

10

            return getStartValue(seriesIndex, itemIndex);↵

11

11

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 0
Number of refactorable cases | 0
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location |
Number of node comparisons | 0