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 readObject(ObjectInputStream)
|
Method name: void readObject(ObjectInputStream)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | for (int i = 0; i < this.domainAxes.size(); i++) {↵ | 1 | for (int i = 0; i < this.rangeAxes.size(); i++) {↵ | |
2 | CategoryAxis xAxis = (CategoryAxis) this.domainAxes.get(i);↵ | 2 | ValueAxis yAxis = (ValueAxis) this.rangeAxes.get(i);↵ | |
3 | if (xAxis != null) {↵ | 3 | if (yAxis != null) {↵ | |
4 | xAxis.setPlot(this);↵ | 4 | yAxis.setPlot(this);↵ | |
5 | xAxis.addChangeListener(this);↵ | 5 | yAxis.addChangeListener(this);↵ | |
6 | }↵ | 6 | }↵ | |
7 | } | 7 |
| |
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) | 0.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 13 |
Number of mapped statements | 5 |
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) | 6.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | for (int i = 0; i < this.domainAxes.size(); i++) |
| 13 | for (int i = 0; i < this.rangeAxes.size(); i++) | ||||||||||||||||||||||||
9 | CategoryAxis xAxis = (CategoryAxis)this.domainAxes.get(i); |
| 14 | ValueAxis yAxis = (ValueAxis)this.rangeAxes.get(i); | ||||||||||||||||||||||||
10 | if (xAxis != null) |
| 15 | if (yAxis != null) | ||||||||||||||||||||||||
11 | xAxis.setPlot(this); |
| 16 | yAxis.setPlot(this); | ||||||||||||||||||||||||
12 | xAxis.addChangeListener(this); |
| 17 | yAxis.addChangeListener(this); |
Row | Violation |
---|---|
1 | Expression (CategoryAxis)this.domainAxes.get(i) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression (ValueAxis)this.rangeAxes.get(i) cannot be parameterized, because it has dependencies to/from statements that will be extracted |