File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBarRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/util/RelativeDateFormat.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 24 | Number of AST nodes: 26 | |||
1 | if (obj == this) {↵ | 1 | if (obj == this) {↵ | |
2 | return true;↵ | 2 | return true;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (!(obj instanceof XYBarRenderer)) {↵ | 4 | if (!(obj instanceof RelativeDateFormat)) {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | if (!super.equals(obj)) {↵ | 7 | if (!super.equals(obj)) {↵ | |
8 | return false;↵ | 8 | return false;↵ | |
9 | }↵ | 9 | }↵ | |
10 | XYBarRenderer that = (XYBarRenderer) obj;↵ | 10 | RelativeDateFormat that = (RelativeDateFormat) obj;↵ | |
11 | if (this.base != that.base) {↵ | 11 | if (this.baseMillis != that.baseMillis) {↵ | |
12 | return false;↵ | 12 | return false;↵ | |
13 | }↵ | 13 | }↵ | |
14 | if (this.drawBarOutline != that.drawBarOutline) {↵ | 14 | if (this.showZeroDays != that.showZeroDays) {↵ | |
15 | return false;↵ | 15 | return false;↵ | |
16 | }↵ | 16 | }↵ | |
17 | if (this.margin != that.margin) {↵ | 17 | if (this.showZeroHours != that.showZeroHours) {↵ | |
18 | return false;↵ | 18 | return false;↵ | |
19 | }↵ | 19 | }↵ | |
20 | if (this.useYInterval != that.useYInterval) {↵ | 20 | if (!this.positivePrefix.equals(that.positivePrefix)) {↵ | |
21 | return false;↵ | 21 | return false;↵ | |
22 | }↵ | 22 | }↵ | |
23 | if (!ObjectUtilities.equal(↵ | 23 | if (!↵ | |
24 | this.gradientPaintTransformer, that.gradientPaintTransformer)↵ | |||
25 | ) {↵ | 24 | this.daySuffix.equals(that.daySuffix)) {↵ | |
26 | return false;↵ | 25 | return false;↵ | |
27 | }↵ | 26 | }↵ | |
28 | if (!ShapeUtilities.equal(this.legendBar, that.legendBar)) {↵ | 27 | if (!this.hourSuffix.equals(that.hourSuffix)) {↵ | |
29 | return false; ↵ | 28 | return false;↵ | |
30 | }↵ | 29 | }↵ | |
31 | if (!ObjectUtilities.equal(this.positiveItemLabelPositionFallback,↵ | 30 | if (!this.minuteSuffix.equals(that.minuteSuffix)) {↵ | |
31 | return false;↵ | |||
32 | ↵ | 32 | }↵ | |
33 | that.positiveItemLabelPositionFallback)) {↵ | 33 | if (!this.secondSuffix.equals(that.secondSuffix)) {↵ | |
34 | return false;↵ | 34 | return false;↵ | |
35 | }↵ | 35 | }↵ | |
36 | if (!ObjectUtilities.equal(this.negativeItemLabelPositionFallback,↵ | 36 | if (!this.secondFormatter.equals(th↵ | |
37 | that.negativeItemLabelPositionFallback)) {↵ | 37 | at.secondFormatter)) {↵ | |
38 | return false;↵ | 38 | return false;↵ | |
39 | } ↵ | 39 | }↵ | |
40 | return true; | 40 |
| |
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) | 7.8 |
Clones location | Clones are in different classes |
Number of node comparisons | 217 |
Number of mapped statements | 20 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 9.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (obj == this) | 1 | if (obj == this) | ||||||||||||||||||||||||||||
2 | return true; | 2 | return true; | ||||||||||||||||||||||||||||
3 | if (!(obj instanceof XYBarRenderer)) |
| 3 | if (!(obj instanceof RelativeDateFormat)) | |||||||||||||||||||||||||||
4 | return false; | 4 | return false; | ||||||||||||||||||||||||||||
5 | if (!super.equals(obj)) |
| 5 | if (!super.equals(obj)) | |||||||||||||||||||||||||||
6 | return false; | 6 | return false; | ||||||||||||||||||||||||||||
| 7 | RelativeDateFormat that = (RelativeDateFormat)obj; | |||||||||||||||||||||||||||||
7 | XYBarRenderer that = (XYBarRenderer)obj; | | |||||||||||||||||||||||||||||
8 | if (this.base != that.base) |
| 8 | if (this.baseMillis != that.baseMillis) | |||||||||||||||||||||||||||
9 | return false; | 9 | return false; | ||||||||||||||||||||||||||||
10 | if (this.drawBarOutline != that.drawBarOutline) |
| 10 | if (this.showZeroDays != that.showZeroDays) | |||||||||||||||||||||||||||
11 | return false; | 11 | return false; | ||||||||||||||||||||||||||||
12 | if (this.margin != that.margin) |
| 12 | if (this.showZeroHours != that.showZeroHours) | |||||||||||||||||||||||||||
13 | return false; | 13 | return false; | ||||||||||||||||||||||||||||
14 | if (this.useYInterval != that.useYInterval) | | |||||||||||||||||||||||||||||
15 | return false; |
| | ||||||||||||||||||||||||||||
16 | if (!ObjectUtilities.equal(this.gradientPaintTransformer, that.gradientPaintTransformer)) |
| 16 | if (!this.daySuffix.equals(that.daySuffix)) | |||||||||||||||||||||||||||
17 | return false; | 17 | return false; | ||||||||||||||||||||||||||||
18 | if (!ShapeUtilities.equal(this.legendBar, that.legendBar)) |
| 18 | if (!this.hourSuffix.equals(that.hourSuffix)) | |||||||||||||||||||||||||||
19 | return false; | 19 | return false; | ||||||||||||||||||||||||||||
20 | if (!ObjectUtilities.equal(this.positiveItemLabelPositionFallback, that.positiveItemLabelPositionFallback)) |
| 20 | if (!this.minuteSuffix.equals(that.minuteSuffix)) | |||||||||||||||||||||||||||
21 | return false; | 21 | return false; | ||||||||||||||||||||||||||||
22 | if (!ObjectUtilities.equal(this.negativeItemLabelPositionFallback, that.negativeItemLabelPositionFallback)) |
| 14 | if (!this.positivePrefix.equals(that.positivePrefix)) | |||||||||||||||||||||||||||
23 | return false; | 15 | return false; |
Row | Violation |
---|---|
1 | Type org.jfree.chart.renderer.xy.XYBarRenderer does not match with type org.jfree.chart.util.RelativeDateFormat |
2 | Super method call if(!super.equals(obj)) cannot be extracted from method |
3 | Super method call if(!super.equals(obj)) cannot be extracted from method |
4 | Type double of variable this.base does not match with type long of variable this.baseMillis |
5 | Type double of variable that.base does not match with type long of variable that.baseMillis |
6 | Expression that.base cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression that.baseMillis cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Type double of variable that.base does not match with type long of variable that.baseMillis |
9 | Type boolean of variable that.drawBarOutline does not match with type boolean of variable that.showZeroDays |
10 | Expression that.drawBarOutline cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression that.showZeroDays cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Type double of variable this.margin does not match with type boolean of variable this.showZeroHours |
13 | Type double of variable that.margin does not match with type boolean of variable that.showZeroHours |
14 | Expression that.margin cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression that.showZeroHours cannot be parameterized, because it has dependencies to/from statements that will be extracted |
16 | Type double of variable that.margin does not match with type boolean of variable that.showZeroHours |
17 | Unmatched return false; |
18 | Expression ObjectUtilities.equal(this.gradientPaintTransformer,that.gradientPaintTransformer) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
19 | Expression this.daySuffix.equals(that.daySuffix) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
20 | Expression ShapeUtilities.equal(this.legendBar,that.legendBar) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
21 | Expression this.hourSuffix.equals(that.hourSuffix) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
22 | Expression ObjectUtilities.equal(this.positiveItemLabelPositionFallback,that.positiveItemLabelPositionFallback) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
23 | Expression this.minuteSuffix.equals(that.minuteSuffix) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
24 | Expression ObjectUtilities.equal(this.negativeItemLabelPositionFallback,that.negativeItemLabelPositionFallback) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
25 | Expression this.positivePrefix.equals(that.positivePrefix) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
26 | Not all possible execution flows end in a return statement |
27 | The refactoring of the clones is infeasible, because classes org.jfree.chart.renderer.xy.XYBarRenderer and org.jfree.chart.util.RelativeDateFormat do not have a common superclass |