File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainCategoryPlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainXYPlot.java | |||
Method name: void remove(CategoryPlot)
|
Method name: void remove(XYPlot)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | this.subplots.remove(position);↵ | 1 | this.subplots.remove(position);↵ | |
2 | subplot.setParent(null);↵ | 2 | subplot.setParent(null);↵ | |
3 | subplot.removeChangeListener(this);↵ | 3 | subplot.removeChangeListener(this);↵ | |
4 | this.totalWeight -= subplot.getWeight();↵ | 4 | this.totalWeight -= subplot.getWeight();↵ | |
5 | CategoryAxis domain = getDomainAxis();↵ | 5 | ValueAxis domain = getDomainAxis();↵ | |
6 | if (domain != null) {↵ | 6 | if (domain != null) {↵ | |
7 | domain.configure();↵ | 7 | domain.configure();↵ | |
8 | }↵ | 8 | }↵ | |
9 | fireChangeEvent(); | 9 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 32 |
Number of mapped statements | 8 |
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) | 2.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11 | this.subplots.remove(position); | 11 | this.subplots.remove(position); | ||||||||||||||
12 | subplot.setParent(null); |
| 12 | subplot.setParent(null); | |||||||||||||
13 | subplot.removeChangeListener(this); |
| 13 | subplot.removeChangeListener(this); | |||||||||||||
14 | this.totalWeight -= subplot.getWeight(); |
| 14 | this.totalWeight -= subplot.getWeight(); | |||||||||||||
15 | CategoryAxis domain = getDomainAxis(); |
| 15 | ValueAxis domain = getDomainAxis(); | |||||||||||||
16 | if (domain != null) |
| 16 | if (domain != null) | |||||||||||||
17 | domain.configure(); |
| 17 | domain.configure(); | |||||||||||||
18 | fireChangeEvent(); | 18 | fireChangeEvent(); |
Row | Violation |
---|---|
1 | Expression subplot cannot be unified with expression subplot , because common superclass org.jfree.chart.plot.Plot does not declare member(s) public int getWeight() |