File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PolarPlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/title/LegendGraphic.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 32 | Number of AST nodes: 32 | |||
1 | if (obj == this) {↵ | |||
2 | return true;↵ | |||
3 | }↵ | |||
4 | if (!(obj instanceof PolarPlot)) {↵ | 1 | if (!(obj instanceof LegendGraphic)) {↵ | |
5 | return false;↵ | 2 | return false;↵ | |
6 | }↵ | 3 | }↵ | |
7 | PolarPlot that = (PolarPlot) obj;↵ | 4 | ↵ | |
8 | if (!ObjectUtilities.equal(this.axis, that.axis)↵ | 5 | LegendGraphic that = (LegendGraphic) obj;↵ | |
9 | ) {↵ | 6 | if (this.shapeVisible != that.shapeVisible) {↵ | |
10 | return false;↵ | 7 | return false;↵ | |
11 | }↵ | 8 | }↵ | |
12 | if (!ObjectUtilities.equal(this.renderer, that.renderer)) {↵ | 9 | if (!ShapeUtilities.equal(this.shape, that.shape)) {↵ | |
13 | return false;↵ | 10 | return false;↵ | |
14 | }↵ | 11 | }↵ | |
15 | if (!this.angleTickUnit.equals(that.angleTickUnit)) {↵ | 12 | if (this.shapeFilled != that.shapeFilled) {↵ | |
16 | return false;↵ | 13 | return false;↵ | |
17 | }↵ | 14 | }↵ | |
18 | if (this.angleGridlinesVisible != that.angleGridlinesVisible) {↵ | 15 | if (↵ | |
19 | return false;↵ | |||
20 | }↵ | |||
21 | if (this.angleLabelsVisible != that.angleLabelsVisible↵ | 16 | !PaintUtilities.equal(this.fillPaint, that.fillPaint)) {↵ | |
17 | return false;↵ | |||
18 | }↵ | |||
19 | if (!ObjectUtilities.equal(this.fillPaintTransformer, ↵ | |||
22 | ) {↵ | 20 | that.fillPaintTransformer)) {↵ | |
23 | return false;↵ | 21 | return false;↵ | |
24 | }↵ | 22 | }↵ | |
25 | if (!this.angleLabelFont.equals(that.angleLabelFont)) {↵ | 23 | if (this.shapeOutlineVisible != that.shapeOutlineVisible) {↵ | |
26 | return false;↵ | 24 | return false;↵ | |
27 | }↵ | 25 | }↵ | |
28 | if (!PaintUtilities.equal(this.angleLabelPaint, that.angleLabelPaint)) {↵ | 26 | if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) {↵ | |
29 | return false;↵ | 27 | return false;↵ | |
30 | }↵ | 28 | }↵ | |
31 | if (!ObjectUtilities.equal(this.angleGridlineStroke,↵ | 29 | if (!ObjectUtilities.equal(this.outlineStroke,↵ | |
32 | that.angleGridlineStroke)) {↵ | 30 | that.outlineStroke)) {↵ | |
33 | return false;↵ | 31 | return false;↵ | |
34 | }↵ | 32 | }↵ | |
35 | if (!PaintUtilities.equal(↵ | 33 | if (this.shapeAnchor != that.shapeAnchor) {↵ | |
34 | return false;↵ | |||
36 | ↵ | 35 | }↵ | |
37 | this.angleGridlinePaint, that.angleGridlinePaint↵ | 36 | ↵ | |
38 | )) {↵ | 37 | if (this.shapeLocation != that.shapeLocation) {↵ | |
39 | return false;↵ | 38 | return false;↵ | |
40 | }↵ | 39 | }↵ | |
41 | if (this.radiusGridlinesVisible != that.radiusGridlinesVisible) {↵ | 40 | if (this.lineVisible != that.lineVisible) {↵ | |
42 | return false;↵ | 41 | return false;↵ | |
43 | }↵ | 42 | }↵ | |
44 | if (!ObjectUtilities.equal(this.radiusGridlineStroke,↵ | 43 | if (!ShapeUtilities.equal(this.↵ | |
45 | that.radiusGridlineStroke)) {↵ | 44 | line, that.line)) {↵ | |
46 | return false;↵ | 45 | return false;↵ | |
47 | }↵ | 46 | }↵ | |
48 | if (!PaintUtilities.equal(this.radiusGridlinePaint,↵ | 47 | if (!PaintUtilities.equal(this.↵ | |
49 | that.radiusGridlinePaint)) {↵ | 48 | linePaint, that.linePaint)) {↵ | |
50 | return false;↵ | 49 | return false;↵ | |
51 | }↵ | 50 | }↵ | |
52 | if (!this.cornerTextItems.equals(that.cornerTextItems)) {↵ | 51 | if (!ObjectUtilities.equal(this.lineStroke, that.lineStroke)) {↵ | |
53 | return false;↵ | 52 | return false;↵ | |
54 | }↵ | 53 | }↵ | |
55 | return super.equals(obj); | 54 |
| |
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) | 35.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 406 |
Number of mapped statements | 25 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 6 |
Time elapsed for statement mapping (ms) | 30.3 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (!(obj instanceof PolarPlot)) |
| 1 | if (!(obj instanceof LegendGraphic)) | ||||||||||||||||||||||||||||||
4 | return false; | 2 | return false; | |||||||||||||||||||||||||||||||
5 | PolarPlot that = (PolarPlot)obj; |
| 3 | LegendGraphic that = (LegendGraphic)obj; | ||||||||||||||||||||||||||||||
|
| 4 | if (this.shapeVisible != that.shapeVisible) | |||||||||||||||||||||||||||||||
|
| 5 | return false; | |||||||||||||||||||||||||||||||
6 | if (!ObjectUtilities.equal(this.axis, that.axis)) |
| 12 | if (!ObjectUtilities.equal(this.fillPaintTransformer, that.fillPaintTransformer)) | ||||||||||||||||||||||||||||||
7 | return false; | 13 | return false; | |||||||||||||||||||||||||||||||
8 | if (!ObjectUtilities.equal(this.renderer, that.renderer)) |
| 18 | if (!ObjectUtilities.equal(this.outlineStroke, that.outlineStroke)) | ||||||||||||||||||||||||||||||
9 | return false; | 19 | return false; | |||||||||||||||||||||||||||||||
10 | if (!this.angleTickUnit.equals(that.angleTickUnit)) |
| 6 | if (!ShapeUtilities.equal(this.shape, that.shape)) | ||||||||||||||||||||||||||||||
11 | return false; | 7 | return false; | |||||||||||||||||||||||||||||||
12 | if (this.angleGridlinesVisible != that.angleGridlinesVisible) |
| 8 | if (this.shapeFilled != that.shapeFilled) | ||||||||||||||||||||||||||||||
13 | return false; | 9 | return false; | |||||||||||||||||||||||||||||||
14 | if (this.angleLabelsVisible != that.angleLabelsVisible) |
| 14 | if (this.shapeOutlineVisible != that.shapeOutlineVisible) | ||||||||||||||||||||||||||||||
15 | return false; | 15 | return false; | |||||||||||||||||||||||||||||||
16 | if (!this.angleLabelFont.equals(that.angleLabelFont)) |
| 16 | if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) | ||||||||||||||||||||||||||||||
17 | return false; | 17 | return false; | |||||||||||||||||||||||||||||||
18 | if (!PaintUtilities.equal(this.angleLabelPaint, that.angleLabelPaint)) |
| 10 | if (!PaintUtilities.equal(this.fillPaint, that.fillPaint)) | ||||||||||||||||||||||||||||||
19 | return false; | 11 | return false; | |||||||||||||||||||||||||||||||
|
| 20 | if (this.shapeAnchor != that.shapeAnchor) | |||||||||||||||||||||||||||||||
|
| 21 | return false; | |||||||||||||||||||||||||||||||
|
| 22 | if (this.shapeLocation != that.shapeLocation) | |||||||||||||||||||||||||||||||
|
| 23 | return false; | |||||||||||||||||||||||||||||||
20 | if (!ObjectUtilities.equal(this.angleGridlineStroke, that.angleGridlineStroke)) |
| 30 | if (!ObjectUtilities.equal(this.lineStroke, that.lineStroke)) | ||||||||||||||||||||||||||||||
21 | return false; | 31 | return false; | |||||||||||||||||||||||||||||||
22 | if (!PaintUtilities.equal(this.angleGridlinePaint, that.angleGridlinePaint)) |
| 28 | if (!PaintUtilities.equal(this.linePaint, that.linePaint)) | ||||||||||||||||||||||||||||||
23 | return false; | 29 | return false; | |||||||||||||||||||||||||||||||
24 | if (this.radiusGridlinesVisible != that.radiusGridlinesVisible) |
| 24 | if (this.lineVisible != that.lineVisible) | ||||||||||||||||||||||||||||||
25 | return false; | 25 | return false; | |||||||||||||||||||||||||||||||
26 | if (!ObjectUtilities.equal(this.radiusGridlineStroke, that.radiusGridlineStroke)) |
| 26 | if (!ShapeUtilities.equal(this.line, that.line)) | ||||||||||||||||||||||||||||||
27 | return false; | 27 | return false; |
Row | Violation |
---|---|
1 | Unmatched statement if(this.shapeVisible != that.shapeVisible) cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched return false; |
3 | Type org.jfree.chart.axis.ValueAxis of variable this.axis does not match with type org.jfree.ui.GradientPaintTransformer of variable this.fillPaintTransformer |
4 | Expression that.axis cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression that.fillPaintTransformer cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Type org.jfree.chart.axis.ValueAxis of variable that.axis does not match with type org.jfree.ui.GradientPaintTransformer of variable that.fillPaintTransformer |
7 | Type org.jfree.chart.renderer.PolarItemRenderer of variable this.renderer does not match with type java.awt.Stroke of variable this.outlineStroke |
8 | Expression that.renderer cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression that.outlineStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Type org.jfree.chart.renderer.PolarItemRenderer of variable that.renderer does not match with type java.awt.Stroke of variable that.outlineStroke |
11 | Expression this.angleTickUnit.equals(that.angleTickUnit) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression ShapeUtilities.equal(this.shape,that.shape) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression that.angleGridlinesVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Expression that.shapeFilled cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression that.angleLabelsVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted |
16 | Expression that.shapeOutlineVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted |
17 | Expression this.angleLabelFont.equals(that.angleLabelFont) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
18 | Expression PaintUtilities.equal(this.outlinePaint,that.outlinePaint) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
19 | Expression that.angleLabelPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
20 | Expression that.fillPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
21 | Unmatched statement if(this.shapeAnchor != that.shapeAnchor) cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
22 | Unmatched return false; |
23 | Unmatched statement if(this.shapeLocation != that.shapeLocation) cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
24 | Unmatched return false; |
25 | Expression that.angleGridlineStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted |
26 | Expression that.lineStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted |
27 | Expression that.angleGridlinePaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
28 | Expression that.linePaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
29 | Expression that.radiusGridlinesVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted |
30 | Expression that.lineVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted |
31 | Type java.awt.Stroke of variable this.radiusGridlineStroke does not match with type java.awt.Shape of variable this.line |
32 | Expression that.radiusGridlineStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted |
33 | Expression that.line cannot be parameterized, because it has dependencies to/from statements that will be extracted |
34 | Type java.awt.Stroke of variable that.radiusGridlineStroke does not match with type java.awt.Shape of variable that.line |
35 | Type org.jfree.util.ObjectUtilities does not match with type org.jfree.util.ShapeUtilities |
36 | Clone fragment #1 returns variable that with type org.jfree.chart.plot.PolarPlot , while Clone fragment #2 returns variable that with type org.jfree.chart.title.LegendGraphic |
37 | Not all possible execution flows end in a return statement |