1336-3-5

public void setTickLabelInsets(RectangleInsets insets) { if (insets == null) { throw new IllegalArgumentException("Null 'insets' argument."); } if (!this.tickLabelInsets.equals(insets)) { this.tickLabelInsets = insets; notifyListeners(new AxisChangeEvent(this));
public void setText(String text) { if (text == null) { throw new IllegalArgumentException("Null 'text' argument."); } if (!this.text.equals(text)) { this.text = text; notifyListeners(new TitleChangeEvent(this));

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

1

    public void setTickLabelInsets(RectangleInsets insets) {↵

1

    public void setText(String text) {↵

2

            if (insets == null) {↵

2

            if (text == null) {↵

3

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

3

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

4

            }↵

4

            }↵

5

            if (!this.tickLabelInsets.equals(insets)) {↵

5

            if (!this.text.equals(text)) {↵

6

                this.tickLabelInsets = insets;↵

6

                this.text = text;↵

7

                notifyListeners(new AxisChangeEvent(this));↵

7

                notifyListeners(new TitleChangeEvent(this));↵

8

8

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