1200-1-2

public void setDomainAxisLocation(int index, AxisLocation location, boolean notify) { if (index == 0 && location == null) { throw new IllegalArgumentException( "Null 'location' for index 0 not permitted."); } this.domainAxisLocations.set(index, location); if (notify) { fireChangeEvent();
public void setRangeAxisLocation(int index, AxisLocation location, boolean notify) { if (index == 0 && location == null) { throw new IllegalArgumentException( "Null 'location' for index 0 not permitted."); } this.rangeAxisLocations.set(index, location); if (notify) { fireChangeEvent();

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

    public void setDomainAxisLocation(int index, AxisLocation location,↵

1

    public void setRangeAxisLocation(int index, AxisLocation location,↵

2

                boolean notify) {↵

2

                                         boolean notify) {↵

3

            if (index == 0 && location == null) {↵

3

            if (index == 0 && location == null) {↵

4

                throw new IllegalArgumentException(↵

4

                throw new IllegalArgumentException(↵

5

                        "Null 'location' for index 0 not permitted.");↵

5

                        "Null 'location' for index 0 not permitted.");↵

6

            }↵

6

            }↵

7

            this.domainAxisLocations.set(index, location);↵

7

            this.rangeAxisLocations.set(index, location);↵

8

            if (notify) {↵

8

            if (notify) {↵

9

                fireChangeEvent();↵

9

                fireChangeEvent();↵

10

10

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