1175-1-2

public Font getTickLabelFont(Comparable category) { if (category == null) { throw new IllegalArgumentException("Null 'category' argument."); } Font result = (Font) this.tickLabelFontMap.get(category); // if there is no specific font, use the general one... if (result == null) { result = getTickLabelFont(); } return result;
public Paint getTickLabelPaint(Comparable category) { if (category == null) { throw new IllegalArgumentException("Null 'category' argument."); } Paint result = (Paint) this.tickLabelPaintMap.get(category); // if there is no specific paint, use the general one... if (result == null) { result = getTickLabelPaint(); } return result;

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

1

    public Font getTickLabelFont(Comparable category) {↵

1

    public Paint getTickLabelPaint(Comparable category) {↵

2

            if (category == null) {↵

2

            if (category == null) {↵

3

                throw new IllegalArgumentException("Null 'category' argument.");↵

3

                throw new IllegalArgumentException("Null 'category' argument.");↵

4

            }↵

4

            }↵

5

            Font result = (Font) this.tickLabelFontMap.get(category);↵

5

            Paint result = (Paint) this.tickLabelPaintMap.get(category);↵

6

            // if there is no specific font, use the general one...↵

6

            // if there is no specific paint, use the general one...↵

7

            if (result == null) {↵

7

            if (result == null) {↵

8

                result = getTickLabelFont();↵

8

                result = getTickLabelPaint();↵

9

            }↵

9

            }↵

10

            return result;↵

10

            return result;↵

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