File path: /jfreechart-1.0.10/src/org/jfree/chart/block/FlowArrangement.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 FlowArrangement)) {↵ | 4 | if (!(obj instanceof OHLC)) {↵ | |
5 | return false; ↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | FlowArrangement that = (FlowArrangement) obj;↵ | 7 | OHLC that = (OHLC) obj;↵ | |
8 | if (this.horizontalAlignment != that.horizontalAlignment) {↵ | 8 | if (this.open != that.open) {↵ | |
9 | return false;↵ | 9 | return false;↵ | |
10 | }↵ | 10 | }↵ | |
11 | if (this.verticalAlignment != that.verticalAlignment) {↵ | 11 | if (this.close != that.close) {↵ | |
12 | return false;↵ | 12 | return false;↵ | |
13 | }↵ | 13 | }↵ | |
14 | if (this.horizontalGap != that.horizontalGap) {↵ | 14 | if (this.high != that.high) {↵ | |
15 | return false; ↵ | 15 | return false;↵ | |
16 | }↵ | 16 | }↵ | |
17 | if (this.verticalGap != that.verticalGap) {↵ | 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.7 |
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 FlowArrangement)) |
| 3 | if (!(obj instanceof OHLC)) | |||||||||||||||||||||||||||
4 | return false; | 4 | return false; | ||||||||||||||||||||||||||||
| 5 | OHLC that = (OHLC)obj; | |||||||||||||||||||||||||||||
5 | FlowArrangement that = (FlowArrangement)obj; | | |||||||||||||||||||||||||||||
6 | if (this.horizontalAlignment != that.horizontalAlignment) |
| 6 | if (this.open != that.open) | |||||||||||||||||||||||||||
7 | return false; | 7 | return false; | ||||||||||||||||||||||||||||
8 | if (this.verticalAlignment != that.verticalAlignment) |
| 8 | if (this.close != that.close) | |||||||||||||||||||||||||||
9 | return false; | 9 | return false; | ||||||||||||||||||||||||||||
10 | if (this.horizontalGap != that.horizontalGap) |
| 10 | if (this.high != that.high) | |||||||||||||||||||||||||||
11 | return false; | 11 | return false; | ||||||||||||||||||||||||||||
12 | if (this.verticalGap != that.verticalGap) |
| 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.block.FlowArrangement does not match with type org.jfree.data.time.ohlc.OHLC |
2 | Type org.jfree.ui.HorizontalAlignment of variable this.horizontalAlignment does not match with type double of variable this.open |
3 | Type org.jfree.ui.HorizontalAlignment of variable that.horizontalAlignment does not match with type double of variable that.open |
4 | Expression that.horizontalAlignment cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression that.open cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Type org.jfree.ui.HorizontalAlignment of variable that.horizontalAlignment does not match with type double of variable that.open |
7 | Type org.jfree.ui.VerticalAlignment of variable this.verticalAlignment does not match with type double of variable this.close |
8 | Type org.jfree.ui.VerticalAlignment of variable that.verticalAlignment does not match with type double of variable that.close |
9 | Expression that.verticalAlignment cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression that.close cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Type org.jfree.ui.VerticalAlignment of variable that.verticalAlignment does not match with type double of variable that.close |
12 | Type double of variable that.horizontalGap does not match with type double of variable that.high |
13 | Expression that.horizontalGap cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Expression that.high cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Type double of variable that.verticalGap does not match with type double of variable that.low |
16 | Expression that.verticalGap cannot be parameterized, because it has dependencies to/from statements that will be extracted |
17 | Expression that.low cannot be parameterized, because it has dependencies to/from statements that will be extracted |