File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/AxisSpace.java | File path: /jfreechart-1.0.10/src/org/jfree/data/time/ohlc/OHLC.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 == this) {↵ | |
2 | return true;↵ | 2 | return true;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (!(obj instanceof AxisSpace)) {↵ | 4 | if (!(obj instanceof OHLC)) {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | AxisSpace that = (AxisSpace) obj;↵ | 7 | OHLC that = (OHLC) obj;↵ | |
8 | if (this.top != that.top) {↵ | 8 | if (this.open != that.open) {↵ | |
9 | return false;↵ | 9 | return false;↵ | |
10 | } ↵ | 10 | }↵ | |
11 | if (this.bottom != that.bottom) {↵ | 11 | if (this.close != that.close) {↵ | |
12 | return false;↵ | 12 | return false;↵ | |
13 | }↵ | 13 | }↵ | |
14 | if (this.left != that.left) {↵ | 14 | if (this.high != that.high) {↵ | |
15 | return false;↵ | 15 | return false;↵ | |
16 | }↵ | 16 | }↵ | |
17 | if (this.right != that.right) {↵ | 17 | if (this.low != that.low) {↵ | |
18 | return false;↵ | 18 | return false;↵ | |
19 | }↵ | 19 | }↵ | |
20 | return true; | 20 |
| |
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) | 2.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 76 |
Number of mapped statements | 13 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 3.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (obj == this) | 1 | if (obj == this) | ||||||||||||||||||||
2 | return true; | 2 | return true; | ||||||||||||||||||||
3 | if (!(obj instanceof AxisSpace)) |
| 3 | if (!(obj instanceof OHLC)) | |||||||||||||||||||
4 | return false; | 4 | return false; | ||||||||||||||||||||
| 5 | OHLC that = (OHLC)obj; | |||||||||||||||||||||
5 | AxisSpace that = (AxisSpace)obj; | | |||||||||||||||||||||
6 | if (this.top != that.top) |
| 6 | if (this.open != that.open) | |||||||||||||||||||
7 | return false; | 7 | return false; | ||||||||||||||||||||
8 | if (this.bottom != that.bottom) |
| 8 | if (this.close != that.close) | |||||||||||||||||||
9 | return false; | 9 | return false; | ||||||||||||||||||||
10 | if (this.left != that.left) |
| 10 | if (this.high != that.high) | |||||||||||||||||||
11 | return false; | 11 | return false; | ||||||||||||||||||||
12 | if (this.right != that.right) |
| 12 | if (this.low != that.low) | |||||||||||||||||||
13 | return false; | 13 | return false; | ||||||||||||||||||||
14 | return true; | 14 | return true; |
Row | Violation |
---|---|
1 | Type org.jfree.chart.axis.AxisSpace does not match with type org.jfree.data.time.ohlc.OHLC |
2 | Type double of variable that.top does not match with type double of variable that.open |
3 | Expression that.top cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression that.open cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type double of variable that.bottom does not match with type double of variable that.close |
6 | Expression that.bottom cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression that.close 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 double of variable that.high |
9 | Expression that.left cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression that.high cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Type double of variable that.right does not match with type double of variable that.low |
12 | Expression that.right cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression that.low cannot be parameterized, because it has dependencies to/from statements that will be extracted |