File path: /jfreechart-1.0.10/src/org/jfree/chart/block/FlowArrangement.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 FlowArrangement)↵ | 4 | SimpleHistogramBin that = (SimpleHistogramBin) obj;↵ | |
5 | ) {↵ | 5 | if (this.lowerBound != that.lowerBound) {↵ | |
6 | return false; ↵ | 6 | return false;↵ | |
7 | }↵ | 7 | }↵ | |
8 | FlowArrangement that = (FlowArrangement) obj;↵ | 8 | ↵ | |
9 | if (this.horizontalAlignment != that.horizontalAlignment) {↵ | 9 | if (this.upperBound != that.upperBound) {↵ | |
10 | return false;↵ | 10 | return false;↵ | |
11 | }↵ | 11 | }↵ | |
12 | if (this.verticalAlignment != that.verticalAlignment) {↵ | 12 | if (this.includeLowerBound != that.includeLowerBound) {↵ | |
13 | return false;↵ | 13 | return false;↵ | |
14 | }↵ | 14 | }↵ | |
15 | if (this.horizontalGap != that.horizontalGap) {↵ | 15 | if (this.includeUpperBound != that.includeUpperBound) {↵ | |
16 | return false; ↵ | 16 | return false;↵ | |
17 | }↵ | 17 | }↵ | |
18 | if (this.verticalGap != that.verticalGap) {↵ | 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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 70 |
Number of mapped statements | 10 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (!(obj instanceof FlowArrangement)) |
| 1 | if (!(obj instanceof SimpleHistogramBin)) | |||||||||||||||||||||||||||
4 | return false; | 2 | return false; | ||||||||||||||||||||||||||||
| 3 | SimpleHistogramBin that = (SimpleHistogramBin)obj; | |||||||||||||||||||||||||||||
5 | FlowArrangement that = (FlowArrangement)obj; | | |||||||||||||||||||||||||||||
6 | if (this.horizontalAlignment != that.horizontalAlignment) |
| 4 | if (this.lowerBound != that.lowerBound) | |||||||||||||||||||||||||||
7 | return false; | 5 | return false; | ||||||||||||||||||||||||||||
8 | if (this.verticalAlignment != that.verticalAlignment) |
| 6 | if (this.upperBound != that.upperBound) | |||||||||||||||||||||||||||
9 | return false; | 7 | return false; | ||||||||||||||||||||||||||||
10 | if (this.horizontalGap != that.horizontalGap) |
| 8 | if (this.includeLowerBound != that.includeLowerBound) | |||||||||||||||||||||||||||
11 | return false; | 9 | return false; | ||||||||||||||||||||||||||||
12 | if (this.verticalGap != that.verticalGap) |
| 10 | if (this.includeUpperBound != that.includeUpperBound) | |||||||||||||||||||||||||||
13 | return false; | 11 | return false; |
Row | Violation |
---|---|
1 | Type org.jfree.chart.block.FlowArrangement does not match with type org.jfree.data.statistics.SimpleHistogramBin |
2 | Type org.jfree.ui.HorizontalAlignment of variable this.horizontalAlignment does not match with type double of variable this.lowerBound |
3 | Type org.jfree.ui.HorizontalAlignment of variable that.horizontalAlignment does not match with type double of variable that.lowerBound |
4 | Expression that.horizontalAlignment cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression that.lowerBound 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.lowerBound |
7 | Type org.jfree.ui.VerticalAlignment of variable this.verticalAlignment does not match with type double of variable this.upperBound |
8 | Type org.jfree.ui.VerticalAlignment of variable that.verticalAlignment does not match with type double of variable that.upperBound |
9 | Expression that.verticalAlignment cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression that.upperBound 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.upperBound |
12 | Type double of variable this.horizontalGap does not match with type boolean of variable this.includeLowerBound |
13 | Type double of variable that.horizontalGap does not match with type boolean of variable that.includeLowerBound |
14 | Expression that.horizontalGap cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression that.includeLowerBound cannot be parameterized, because it has dependencies to/from statements that will be extracted |
16 | Type double of variable that.horizontalGap does not match with type boolean of variable that.includeLowerBound |
17 | Type double of variable this.verticalGap does not match with type boolean of variable this.includeUpperBound |
18 | Type double of variable that.verticalGap does not match with type boolean of variable that.includeUpperBound |
19 | Expression that.verticalGap cannot be parameterized, because it has dependencies to/from statements that will be extracted |
20 | Expression that.includeUpperBound cannot be parameterized, because it has dependencies to/from statements that will be extracted |
21 | Type double of variable that.verticalGap does not match with type boolean of variable that.includeUpperBound |
22 | Not all possible execution flows end in a return statement |