File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/MarkerAxisBand.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/RingPlot.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 18 | Number of AST nodes: 18 | |||
1 | if (obj == this) {↵ | 1 | if (this == obj) {↵ | |
2 | return true;↵ | 2 | return true;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (!(obj instanceof MarkerAxisBand)) {↵ | 4 | if (!(obj instanceof RingPlot)) {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | MarkerAxisBand that = (MarkerAxisBand) obj;↵ | 7 | RingPlot that = (RingPlot) obj;↵ | |
8 | if (this.topOuterGap != that.topOuterGap) {↵ | 8 | if (this.separatorsVisible != that.separatorsVisible) {↵ | |
9 | return false;↵ | 9 | return false;↵ | |
10 | }↵ | 10 | }↵ | |
11 | if (this.topInnerGap != that.topInnerGap) {↵ | 11 | if (↵ | |
12 | return false;↵ | |||
13 | }↵ | |||
14 | if (this.bottomInnerGap != that.bottomInnerGap↵ | 12 | !ObjectUtilities.equal(this.separatorStroke, ↵ | |
13 | that.separatorStroke)) {↵ | |||
14 | return false;↵ | |||
15 | }↵ | |||
15 | ) {↵ | 16 | if (!PaintUtilities.equal(this.separatorPaint, that.separatorPaint)) {↵ | |
16 | return false;↵ | 17 | return false;↵ | |
17 | }↵ | 18 | }↵ | |
18 | if (this.bottomOuterGap != that.bottomOuterGap) {↵ | 19 | if (this.↵ | |
19 | return false;↵ | |||
20 | }↵ | |||
21 | if (!ObjectUtilities.equal(this.font, that.font)↵ | 20 | innerSeparatorExtension != that.innerSeparatorExtension) {↵ | |
21 | return false;↵ | |||
22 | }↵ | |||
22 | ) {↵ | 23 | if (this.outerSeparatorExtension != that.outerSeparatorExtension) {↵ | |
23 | return false;↵ | 24 | return false;↵ | |
24 | }↵ | 25 | }↵ | |
25 | if (!ObjectUtilities.equal(this.markers, that.markers)) {↵ | 26 | if (this.sectionDepth != that.sectionDepth) {↵ | |
26 | return false;↵ | 27 | return false;↵ | |
27 | }↵ | 28 | }↵ | |
28 | return true; | 29 | return super.equals(obj); | |
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) | 5.6 |
Clones location | Clones are in different classes |
Number of node comparisons | 113 |
Number of mapped statements | 14 |
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) | 5.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (!(obj instanceof MarkerAxisBand)) |
| 3 | if (!(obj instanceof RingPlot)) | |||||||||||||||||||||||||||||||
4 | return false; | 4 | return false; | ||||||||||||||||||||||||||||||||
| 5 | RingPlot that = (RingPlot)obj; | |||||||||||||||||||||||||||||||||
5 | MarkerAxisBand that = (MarkerAxisBand)obj; | | |||||||||||||||||||||||||||||||||
6 | if (this.topOuterGap != that.topOuterGap) |
| 12 | if (this.innerSeparatorExtension != that.innerSeparatorExtension) | |||||||||||||||||||||||||||||||
7 | return false; | 13 | return false; | ||||||||||||||||||||||||||||||||
8 | if (this.topInnerGap != that.topInnerGap) |
| 14 | if (this.outerSeparatorExtension != that.outerSeparatorExtension) | |||||||||||||||||||||||||||||||
9 | return false; | 15 | return false; | ||||||||||||||||||||||||||||||||
10 | if (this.bottomInnerGap != that.bottomInnerGap) |
| 16 | if (this.sectionDepth != that.sectionDepth) | |||||||||||||||||||||||||||||||
11 | return false; | 17 | return false; | ||||||||||||||||||||||||||||||||
12 | if (this.bottomOuterGap != that.bottomOuterGap) |
| 6 | if (this.separatorsVisible != that.separatorsVisible) | |||||||||||||||||||||||||||||||
13 | return false; | 7 | return false; | ||||||||||||||||||||||||||||||||
14 | if (!ObjectUtilities.equal(this.font, that.font)) |
| 8 | if (!ObjectUtilities.equal(this.separatorStroke, that.separatorStroke)) | |||||||||||||||||||||||||||||||
15 | return false; | 9 | return false; | ||||||||||||||||||||||||||||||||
16 | if (!ObjectUtilities.equal(this.markers, that.markers)) |
| 10 | if (!PaintUtilities.equal(this.separatorPaint, that.separatorPaint)) | |||||||||||||||||||||||||||||||
17 | return false; | 11 | return false; |
Row | Violation |
---|---|
1 | Type org.jfree.chart.axis.MarkerAxisBand does not match with type org.jfree.chart.plot.RingPlot |
2 | Type double of variable that.topOuterGap does not match with type double of variable that.innerSeparatorExtension |
3 | Expression that.topOuterGap cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression that.innerSeparatorExtension cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type double of variable that.topInnerGap does not match with type double of variable that.outerSeparatorExtension |
6 | Expression that.topInnerGap cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression that.outerSeparatorExtension cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Type double of variable that.bottomInnerGap does not match with type double of variable that.sectionDepth |
9 | Expression that.bottomInnerGap cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression that.sectionDepth cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Type double of variable this.bottomOuterGap does not match with type boolean of variable this.separatorsVisible |
12 | Type double of variable that.bottomOuterGap does not match with type boolean of variable that.separatorsVisible |
13 | Expression that.bottomOuterGap cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Expression that.separatorsVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Type double of variable that.bottomOuterGap does not match with type boolean of variable that.separatorsVisible |
16 | Type java.awt.Font of variable this.font does not match with type java.awt.Stroke of variable this.separatorStroke |
17 | Type java.awt.Font of variable that.font does not match with type java.awt.Stroke of variable that.separatorStroke |
18 | Expression that.font cannot be parameterized, because it has dependencies to/from statements that will be extracted |
19 | Expression that.separatorStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted |
20 | Type java.awt.Font of variable that.font does not match with type java.awt.Stroke of variable that.separatorStroke |
21 | Type java.util.List of variable this.markers does not match with type java.awt.Paint of variable this.separatorPaint |
22 | Type java.util.List of variable that.markers does not match with type java.awt.Paint of variable that.separatorPaint |
23 | Expression that.markers cannot be parameterized, because it has dependencies to/from statements that will be extracted |
24 | Expression that.separatorPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
25 | Type java.util.List of variable that.markers does not match with type java.awt.Paint of variable that.separatorPaint |
26 | Type org.jfree.util.ObjectUtilities does not match with type org.jfree.util.PaintUtilities |
27 | Not all possible execution flows end in a return statement |