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: void setDomainAxis(int, CategoryAxis, boolean)
|
Method name: void setRangeAxis(int, ValueAxis, boolean)
|
|||
Number of AST nodes: 11 | Number of AST nodes: 11 | |||
1 | CategoryAxis existing = (CategoryAxis) this.domainAxes.get(index);↵ | 1 | ValueAxis existing = (ValueAxis) this.rangeAxes.get(index);↵ | |
2 | if (existing != null) {↵ | 2 | if (existing != null) {↵ | |
3 | existing.removeChangeListener(this);↵ | 3 | existing.removeChangeListener(this);↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (axis != null) {↵ | 5 | if (axis != null) {↵ | |
6 | axis.setPlot(this);↵ | 6 | axis.setPlot(this);↵ | |
7 | }↵ | 7 | }↵ | |
8 | this.domainAxes.set(index, axis);↵ | 8 | this.rangeAxes.set(index, axis);↵ | |
9 | if (axis != null) {↵ | 9 | if (axis != null) {↵ | |
10 | axis.configure();↵ | 10 | axis.configure();↵ | |
11 | axis.addChangeListener(this);↵ | 11 | axis.addChangeListener(this);↵ | |
12 | }↵ | 12 | }↵ | |
13 | if (notify) {↵ | 13 | if (notify) {↵ | |
14 | fireChangeEvent();↵ | 14 | fireChangeEvent();↵ | |
15 | } | 15 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 1.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 50 |
Number of mapped statements | 11 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 23.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | CategoryAxis existing = (CategoryAxis)this.domainAxes.get(index); |
| 1 | ValueAxis existing = (ValueAxis)this.rangeAxes.get(index); | |||||||||||||||||||
2 | if (existing != null) |
| 2 | if (existing != null) | |||||||||||||||||||
3 | existing.removeChangeListener(this); |
| 3 | existing.removeChangeListener(this); | |||||||||||||||||||
4 | if (axis != null) |
| 4 | if (axis != null) | |||||||||||||||||||
5 | axis.setPlot(this); |
| 5 | axis.setPlot(this); | |||||||||||||||||||
6 | this.domainAxes.set(index, axis); |
| 6 | this.rangeAxes.set(index, axis); | |||||||||||||||||||
7 | if (axis != null) |
| 7 | if (axis != null) | |||||||||||||||||||
8 | axis.configure(); |
| 8 | axis.configure(); | |||||||||||||||||||
9 | axis.addChangeListener(this); |
| 9 | axis.addChangeListener(this); | |||||||||||||||||||
10 | if (notify) | 10 | if (notify) | ||||||||||||||||||||
11 | fireChangeEvent(); | 11 | fireChangeEvent(); |
Row | Violation |
---|