File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/AxisSpace.java | File path: /jfreechart-1.0.10/src/org/jfree/data/statistics/SimpleHistogramBin.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 14 | Number of AST nodes: 14 | |||
1 | if (obj == this) {↵ | 1 | if (!(obj instanceof SimpleHistogramBin)) {↵ | |
2 | return true;↵ | 2 | return false;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (!(obj instanceof AxisSpace)↵ | 4 | SimpleHistogramBin that = (SimpleHistogramBin) obj;↵ | |
5 | ) {↵ | 5 | if (this.lowerBound != that.lowerBound) {↵ | |
6 | return false;↵ | 6 | return false;↵ | |
7 | }↵ | 7 | }↵ | |
8 | AxisSpace that = (AxisSpace) obj;↵ | 8 | ↵ | |
9 | if (this.top != that.top) {↵ | 9 | if (this.upperBound != that.upperBound) {↵ | |
10 | return false;↵ | 10 | return false;↵ | |
11 | } ↵ | 11 | }↵ | |
12 | if (this.bottom != that.bottom) {↵ | 12 | if (this.includeLowerBound != that.includeLowerBound) {↵ | |
13 | return false;↵ | 13 | return false;↵ | |
14 | }↵ | 14 | }↵ | |
15 | if (this.left != that.left) {↵ | 15 | if (this.includeUpperBound != that.includeUpperBound) {↵ | |
16 | return false;↵ | 16 | return false;↵ | |
17 | }↵ | 17 | }↵ | |
18 | if (this.right != that.right) {↵ | 18 | if (this.itemCount != that.itemCount) {↵ | |
19 | return false;↵ | 19 | return false;↵ | |
20 | }↵ | 20 | }↵ | |
21 | return true; | 21 |
| |
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) | 3.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 70 |
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) | 3.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (!(obj instanceof AxisSpace)) |
| 1 | if (!(obj instanceof SimpleHistogramBin)) | ||||||||||||||||||||||||||
4 | return false; | 2 | return false; | |||||||||||||||||||||||||||
5 | AxisSpace that = (AxisSpace)obj; |
| 3 | SimpleHistogramBin that = (SimpleHistogramBin)obj; | ||||||||||||||||||||||||||
6 | if (this.top != that.top) |
| 4 | if (this.lowerBound != that.lowerBound) | ||||||||||||||||||||||||||
7 | return false; | 5 | return false; | |||||||||||||||||||||||||||
8 | if (this.bottom != that.bottom) |
| 6 | if (this.upperBound != that.upperBound) | ||||||||||||||||||||||||||
9 | return false; | 7 | return false; | |||||||||||||||||||||||||||
10 | if (this.left != that.left) |
| 8 | if (this.includeLowerBound != that.includeLowerBound) | ||||||||||||||||||||||||||
11 | return false; | 9 | return false; | |||||||||||||||||||||||||||
12 | if (this.right != that.right) |
| 10 | if (this.includeUpperBound != that.includeUpperBound) | ||||||||||||||||||||||||||
13 | return false; | 11 | return false; |
Row | Violation |
---|---|
1 | Expression that.top cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression that.lowerBound cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression that.bottom cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression that.upperBound cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type double of variable this.left does not match with type boolean of variable this.includeLowerBound |
6 | Expression that.left cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression that.includeLowerBound cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Type double of variable that.left does not match with type boolean of variable that.includeLowerBound |
9 | Type double of variable this.right does not match with type boolean of variable this.includeUpperBound |
10 | Expression that.right cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression that.includeUpperBound cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Type double of variable that.right does not match with type boolean of variable that.includeUpperBound |
13 | Clone fragment #1 returns variables , while Clone fragment #2 returns variables that |
14 | Not all possible execution flows end in a return statement |