if (obj == this) { return true; } if (!(obj instanceof PolarPlot)) { return false; } PolarPlot that = (PolarPlot) obj; if (!ObjectUtilities.equal(this.axis, that.axis)) { return false; } if (!ObjectUtilities.equal(this.renderer, that.renderer)) { return false; } if (!this.angleTickUnit.equals(that.angleTickUnit)) { return false; } if (this.angleGridlinesVisible != that.angleGridlinesVisible) { return false; } if (this.angleLabelsVisible != that.angleLabelsVisible) { return false; } if (!this.angleLabelFont.equals(that.angleLabelFont)) { return false; } if (!PaintUtilities.equal(this.angleLabelPaint, that.angleLabelPaint)) { return false; } if (!ObjectUtilities.equal(this.angleGridlineStroke, that.angleGridlineStroke)) { return false; } if (!PaintUtilities.equal( this.angleGridlinePaint, that.angleGridlinePaint )) { return false; } if (this.radiusGridlinesVisible != that.radiusGridlinesVisible) { return false; } if (!ObjectUtilities.equal(this.radiusGridlineStroke, that.radiusGridlineStroke)) { return false; } if (!PaintUtilities.equal(this.radiusGridlinePaint, that.radiusGridlinePaint)) { return false; } if (!this.cornerTextItems.equals(that.cornerTextItems)) { return false; } return super.equals(obj);
if (obj == this) { return true; } if (!(obj instanceof AbstractXYItemRenderer)) { return false; } AbstractXYItemRenderer that = (AbstractXYItemRenderer) obj; if (!ObjectUtilities.equal(this.itemLabelGenerator, that.itemLabelGenerator)) { return false; } if (!this.itemLabelGeneratorList.equals(that.itemLabelGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.baseItemLabelGenerator, that.baseItemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.toolTipGenerator, that.toolTipGenerator)) { return false; } if (!this.toolTipGeneratorList.equals(that.toolTipGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.baseToolTipGenerator, that.baseToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator)) { return false; } if (!this.foregroundAnnotations.equals(that.foregroundAnnotations)) { return false; } if (!this.backgroundAnnotations.equals(that.backgroundAnnotations)) { return false; } if (this.defaultEntityRadius != that.defaultEntityRadius) { return false; } if (!ObjectUtilities.equal(this.legendItemLabelGenerator, that.legendItemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator)) { return false; } return super.equals(obj);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PolarPlot.java File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/AbstractXYItemRenderer.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) {
1
if (obj == this) {
2
            return true;
2
            return true;
3
        }
3
        }
4
        if (!(obj instanceof PolarPlot)) {
4
        if (!(obj instanceof AbstractXYItemRenderer)) {
5
            return false;
5
            return false;
6
        }
6
        }
7
        PolarPlot that = (PolarPlot) obj;
7
        AbstractXYItemRenderer that = (AbstractXYItemRenderer) obj;
8
        if (!ObjectUtilities.equal(this.axis, that.axis)) {
8
        if (!ObjectUtilities.equal(this.
9
            return false;
9
itemLabelGenerator,
10
        }
10
        
11
        if (!ObjectUtilities.equal(this.renderer, that.renderer)) {
11
        that.itemLabelGenerator)) {
12
            return false;
12
            return false;
13
        }
13
        }
14
        if (!this.angleTickUnit.equals(that.angleTickUnit)) {
14
        if (!this.itemLabelGeneratorList.equals(that.itemLabelGeneratorList)) {
15
            return false;
15
            return false;
16
        }
16
        }
17
        if (this.angleGridlinesVisible != that.angleGridlinesVisible) {
17
        if (
18
            return false;
19
        }
20
        if (this.angleLabelsVisible != that.angleLabelsVisible
18
!ObjectUtilities.equal(this.baseItemLabelGenerator,
19
                that.baseItemLabelGenerator)) {
20
            return false;
21
        }
22
        if (!ObjectUtilities.equal(this.toolTipGenerator,
21
) {
23
                that.toolTipGenerator)) {
22
            return false;
24
            return false;
23
        }
25
        }
24
        if (!this.angleLabelFont.equals(that.angleLabelFont)) {
26
        if (!this.toolTipGeneratorList.equals(that.toolTipGeneratorList)) {
25
            return false;
27
            return false;
26
        }
28
        }
27
        if (!PaintUtilities.equal(this.angleLabelPaint, that.angleLabelPaint
29
        if (!ObjectUtilities.equal(this.baseToolTipGenerator,
28
)) {
30
                that.baseToolTipGenerator)) {
29
            return false;
31
            return false;
30
        }
32
        }
31
        if (!ObjectUtilities.equal(this.angleGridlineStroke,
33
        if (!ObjectUtilities.equal(this.
32
                that.angleGridlineStroke)) {
34
urlGenerator, that.urlGenerator)) {
33
            return false;
35
            return false;
34
        }
36
        }
35
        if (!PaintUtilities.equal(
37
        if (!
36
            this.angleGridlinePaint, that.angleGridlinePaint
37
        
38
this.foregroundAnnotations.equals(that.foregroundAnnotations)) {
39
            return false;
40
        }
38
)) {
41
        if (!this.backgroundAnnotations.equals(that.backgroundAnnotations)) {
39
            return false;
42
            return false;
40
        }
43
        }
41
        if (this.radiusGridlinesVisible != that.radiusGridlinesVisible) {
44
        if (this.defaultEntityRadius != that.defaultEntityRadius) {
42
            return false;
45
            return false;
43
        }
46
        }
44
        if (!ObjectUtilities.equal(this.radiusGridlineStroke,
47
        if (!ObjectUtilities.equal(this.
45
                that.radiusGridlineStroke
48
legendItemLabelGenerator,
46
)) {
49
                that.legendItemLabelGenerator)) {
47
            return false;
50
            return false;
48
        }
51
        }
49
        if (!PaintUtilities.equal(this.radiusGridlinePaint,
52
        if (!ObjectUtilities.equal(this.legendItemToolTipGenerator,
50
                that.radiusGridlinePaint)) {
53
                that.legendItemToolTipGenerator)) {
51
            return false;
54
            return false;
52
        }
55
        }
53
        if (!this.cornerTextItems.equals(that.cornerTextItems
56
        if (!ObjectUtilities.equal(this.legendItemURLGenerator,
54
)) {
57
                that.legendItemURLGenerator)) {
55
            return false;
58
            return false;
56
        }
59
        }
57
        return super.equals(obj);
60
        return super.equals(obj);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)34.6
Clones locationClones are in different classes
Number of node comparisons430
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements27
    Number of unmapped statements in the first code fragment4
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)30.3
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    if (obj == this)
    1
    if (obj == this)
    2
    return true;
    2
    return true;
    3
    if (!(obj instanceof PolarPlot))
    3
    if (!(obj instanceof PolarPlot))
    3
    if (!(obj instanceof AbstractXYItemRenderer))
    Differences
    Expression1Expression2Difference
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    3
    if (!(obj instanceof AbstractXYItemRenderer))
    4
    return false;
    4
    return false;
    5
    PolarPlot that = (PolarPlot)obj;
    5
    PolarPlot that = (PolarPlot)obj;
    5
    AbstractXYItemRenderer that = (AbstractXYItemRenderer)obj;
    Differences
    Expression1Expression2Difference
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    5
    AbstractXYItemRenderer that = (AbstractXYItemRenderer)obj;
    6
    if (!ObjectUtilities.equal(this.axis, that.axis))
    6
    if (!ObjectUtilities.equal(this.axis, that.axis))
    6
    if (!ObjectUtilities.equal(this.itemLabelGenerator, that.itemLabelGenerator))
    Differences
    Expression1Expression2Difference
    axisitemLabelGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.chart.axis.ValueAxisorg.jfree.chart.labels.XYItemLabelGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    axisitemLabelGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.chart.axis.ValueAxisorg.jfree.chart.labels.XYItemLabelGeneratorVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.chart.axis.ValueAxis of variable this.axis does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable this.itemLabelGenerator
    • Make classes org.jfree.chart.axis.ValueAxis and org.jfree.chart.labels.XYItemLabelGenerator extend a common superclass
    Expression that.axis cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.itemLabelGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.jfree.chart.axis.ValueAxis of variable that.axis does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable that.itemLabelGenerator
    • Make classes org.jfree.chart.axis.ValueAxis and org.jfree.chart.labels.XYItemLabelGenerator extend a common superclass
    6
    if (!ObjectUtilities.equal(this.itemLabelGenerator, that.itemLabelGenerator))
    7
    return false;
    7
    return false;
    8
    if (!ObjectUtilities.equal(this.renderer, that.renderer))
    8
    if (!ObjectUtilities.equal(this.renderer, that.renderer))
    10
    if (!ObjectUtilities.equal(this.baseItemLabelGenerator, that.baseItemLabelGenerator))
    Differences
    Expression1Expression2Difference
    rendererbaseItemLabelGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.chart.renderer.PolarItemRendererorg.jfree.chart.labels.XYItemLabelGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    rendererbaseItemLabelGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.chart.renderer.PolarItemRendererorg.jfree.chart.labels.XYItemLabelGeneratorVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.chart.renderer.PolarItemRenderer of variable this.renderer does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable this.baseItemLabelGenerator
    • Make classes org.jfree.chart.renderer.PolarItemRenderer and org.jfree.chart.labels.XYItemLabelGenerator extend a common superclass
    Expression that.renderer cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.baseItemLabelGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.jfree.chart.renderer.PolarItemRenderer of variable that.renderer does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable that.baseItemLabelGenerator
    • Make classes org.jfree.chart.renderer.PolarItemRenderer and org.jfree.chart.labels.XYItemLabelGenerator extend a common superclass
    10
    if (!ObjectUtilities.equal(this.baseItemLabelGenerator, that.baseItemLabelGenerator))
    9
    return false;
    11
    return false;
    10
    if (!this.angleTickUnit.equals(that.angleTickUnit))
    10
    if (!this.angleTickUnit.equals(that.angleTickUnit))
    8
    if (!this.itemLabelGeneratorList.equals(that.itemLabelGeneratorList))
    Differences
    Expression1Expression2Difference
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    angleTickUnititemLabelGeneratorListVARIABLE_NAME_MISMATCH
    org.jfree.chart.axis.TickUnitorg.jfree.util.ObjectListVARIABLE_TYPE_MISMATCH
    angleTickUnititemLabelGeneratorListVARIABLE_NAME_MISMATCH
    org.jfree.chart.axis.TickUnitorg.jfree.util.ObjectListVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Expression that.angleTickUnit cannot be unified with expression that.itemLabelGeneratorList , because common superclass type java.io.Serializable cannot be passed as an argument to public boolean equals(java.lang.Object)
    Expression that.angleTickUnit cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.itemLabelGeneratorList cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.jfree.chart.axis.TickUnit of variable that.angleTickUnit does not match with type org.jfree.util.ObjectList of variable that.itemLabelGeneratorList
    • Make classes org.jfree.chart.axis.TickUnit and org.jfree.util.ObjectList extend a common superclass
    Type org.jfree.chart.axis.TickUnit of variable this.angleTickUnit does not match with type org.jfree.util.ObjectList of variable this.itemLabelGeneratorList
    • Make classes org.jfree.chart.axis.TickUnit and org.jfree.util.ObjectList extend a common superclass
    8
    if (!this.itemLabelGeneratorList.equals(that.itemLabelGeneratorList))
    11
    return false;
    9
    return false;
    12
    if (this.angleGridlinesVisible != that.angleGridlinesVisible)
    12
    if (this.angleGridlinesVisible != that.angleGridlinesVisible)
    24
    if (this.defaultEntityRadius != that.defaultEntityRadius)
    Differences
    Expression1Expression2Difference
    angleGridlinesVisibledefaultEntityRadiusVARIABLE_NAME_MISMATCH
    booleanintVARIABLE_TYPE_MISMATCH
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    angleGridlinesVisibledefaultEntityRadiusVARIABLE_NAME_MISMATCH
    booleanintVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type boolean of variable this.angleGridlinesVisible does not match with type int of variable this.defaultEntityRadius
    Expression that.angleGridlinesVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.defaultEntityRadius cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type boolean of variable that.angleGridlinesVisible does not match with type int of variable that.defaultEntityRadius
    24
    if (this.defaultEntityRadius != that.defaultEntityRadius)
    13
    return false;
    25
    return false;
    14
    if (this.angleLabelsVisible != that.angleLabelsVisible)
    14
    if (this.angleLabelsVisible != that.angleLabelsVisible)
    Preondition Violations
    Unmatched statement if(this.angleLabelsVisible != that.angleLabelsVisible) cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                        
    15
    return false;
    15
    return false;
    Preondition Violations
    Unmatched return false;
                                      
    16
    if (!this.angleLabelFont.equals(that.angleLabelFont))
    16
    if (!this.angleLabelFont.equals(that.angleLabelFont))
    14
    if (!this.toolTipGeneratorList.equals(that.toolTipGeneratorList))
    Differences
    Expression1Expression2Difference
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    angleLabelFonttoolTipGeneratorListVARIABLE_NAME_MISMATCH
    java.awt.Fontorg.jfree.util.ObjectListVARIABLE_TYPE_MISMATCH
    angleLabelFonttoolTipGeneratorListVARIABLE_NAME_MISMATCH
    java.awt.Fontorg.jfree.util.ObjectListVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Expression that.angleLabelFont cannot be unified with expression that.toolTipGeneratorList , because common superclass type java.io.Serializable cannot be passed as an argument to public boolean equals(java.lang.Object)
    Expression that.angleLabelFont cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.toolTipGeneratorList cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type java.awt.Font of variable that.angleLabelFont does not match with type org.jfree.util.ObjectList of variable that.toolTipGeneratorList
    • Make classes java.awt.Font and org.jfree.util.ObjectList extend a common superclass
    Type java.awt.Font of variable this.angleLabelFont does not match with type org.jfree.util.ObjectList of variable this.toolTipGeneratorList
    • Make classes java.awt.Font and org.jfree.util.ObjectList extend a common superclass
    14
    if (!this.toolTipGeneratorList.equals(that.toolTipGeneratorList))
    17
    return false;
    15
    return false;
    18
    if (!PaintUtilities.equal(this.angleLabelPaint, that.angleLabelPaint))
    18
    if (!PaintUtilities.equal(this.angleLabelPaint, that.angleLabelPaint))
    18
    if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator))
    Differences
    Expression1Expression2Difference
    angleLabelPainturlGeneratorVARIABLE_NAME_MISMATCH
    java.awt.Paintorg.jfree.chart.urls.XYURLGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    angleLabelPainturlGeneratorVARIABLE_NAME_MISMATCH
    java.awt.Paintorg.jfree.chart.urls.XYURLGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.util.PaintUtilitiesorg.jfree.util.ObjectUtilitiesVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type java.awt.Paint of variable this.angleLabelPaint does not match with type org.jfree.chart.urls.XYURLGenerator of variable this.urlGenerator
    • Make classes java.awt.Paint and org.jfree.chart.urls.XYURLGenerator extend a common superclass
    Expression that.angleLabelPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.urlGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type java.awt.Paint of variable that.angleLabelPaint does not match with type org.jfree.chart.urls.XYURLGenerator of variable that.urlGenerator
    • Make classes java.awt.Paint and org.jfree.chart.urls.XYURLGenerator extend a common superclass
    Type org.jfree.util.PaintUtilities does not match with type org.jfree.util.ObjectUtilities
    • Make classes org.jfree.util.PaintUtilities and org.jfree.util.ObjectUtilities extend a common superclass
    18
    if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator))
    19
    return false;
    19
    return false;
    20
    if (!ObjectUtilities.equal(this.angleGridlineStroke, that.angleGridlineStroke))
    20
    if (!ObjectUtilities.equal(this.angleGridlineStroke, that.angleGridlineStroke))
    16
    if (!ObjectUtilities.equal(this.baseToolTipGenerator, that.baseToolTipGenerator))
    Differences
    Expression1Expression2Difference
    angleGridlineStrokebaseToolTipGeneratorVARIABLE_NAME_MISMATCH
    java.awt.Strokeorg.jfree.chart.labels.XYToolTipGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    angleGridlineStrokebaseToolTipGeneratorVARIABLE_NAME_MISMATCH
    java.awt.Strokeorg.jfree.chart.labels.XYToolTipGeneratorVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type java.awt.Stroke of variable this.angleGridlineStroke does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable this.baseToolTipGenerator
    • Make classes java.awt.Stroke and org.jfree.chart.labels.XYToolTipGenerator extend a common superclass
    Expression that.angleGridlineStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.baseToolTipGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type java.awt.Stroke of variable that.angleGridlineStroke does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable that.baseToolTipGenerator
    • Make classes java.awt.Stroke and org.jfree.chart.labels.XYToolTipGenerator extend a common superclass
    16
    if (!ObjectUtilities.equal(this.baseToolTipGenerator, that.baseToolTipGenerator))
    21
    return false;
    17
    return false;
    22
    if (!PaintUtilities.equal(this.angleGridlinePaint, that.angleGridlinePaint))
    22
    if (!PaintUtilities.equal(this.angleGridlinePaint, that.angleGridlinePaint))
    26
    if (!ObjectUtilities.equal(this.legendItemLabelGenerator, that.legendItemLabelGenerator))
    Differences
    Expression1Expression2Difference
    angleGridlinePaintlegendItemLabelGeneratorVARIABLE_NAME_MISMATCH
    java.awt.Paintorg.jfree.chart.labels.XYSeriesLabelGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    angleGridlinePaintlegendItemLabelGeneratorVARIABLE_NAME_MISMATCH
    java.awt.Paintorg.jfree.chart.labels.XYSeriesLabelGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.util.PaintUtilitiesorg.jfree.util.ObjectUtilitiesVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type java.awt.Paint of variable this.angleGridlinePaint does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable this.legendItemLabelGenerator
    • Make classes java.awt.Paint and org.jfree.chart.labels.XYSeriesLabelGenerator extend a common superclass
    Expression that.angleGridlinePaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.legendItemLabelGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type java.awt.Paint of variable that.angleGridlinePaint does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable that.legendItemLabelGenerator
    • Make classes java.awt.Paint and org.jfree.chart.labels.XYSeriesLabelGenerator extend a common superclass
    Type org.jfree.util.PaintUtilities does not match with type org.jfree.util.ObjectUtilities
    • Make classes org.jfree.util.PaintUtilities and org.jfree.util.ObjectUtilities extend a common superclass
    26
    if (!ObjectUtilities.equal(this.legendItemLabelGenerator, that.legendItemLabelGenerator))
    23
    return false;
    27
    return false;
    24
    if (this.radiusGridlinesVisible != that.radiusGridlinesVisible)
    24
    if (this.radiusGridlinesVisible != that.radiusGridlinesVisible)
    Preondition Violations
    Unmatched statement if(this.radiusGridlinesVisible != that.radiusGridlinesVisible) cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                        
    25
    return false;
    25
    return false;
    Preondition Violations
    Unmatched return false;
                                      
    26
    if (!ObjectUtilities.equal(this.radiusGridlineStroke, that.radiusGridlineStroke))
    26
    if (!ObjectUtilities.equal(this.radiusGridlineStroke, that.radiusGridlineStroke))
    12
    if (!ObjectUtilities.equal(this.toolTipGenerator, that.toolTipGenerator))
    Differences
    Expression1Expression2Difference
    radiusGridlineStroketoolTipGeneratorVARIABLE_NAME_MISMATCH
    java.awt.Strokeorg.jfree.chart.labels.XYToolTipGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    radiusGridlineStroketoolTipGeneratorVARIABLE_NAME_MISMATCH
    java.awt.Strokeorg.jfree.chart.labels.XYToolTipGeneratorVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type java.awt.Stroke of variable this.radiusGridlineStroke does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable this.toolTipGenerator
    • Make classes java.awt.Stroke and org.jfree.chart.labels.XYToolTipGenerator extend a common superclass
    Expression that.radiusGridlineStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.toolTipGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type java.awt.Stroke of variable that.radiusGridlineStroke does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable that.toolTipGenerator
    • Make classes java.awt.Stroke and org.jfree.chart.labels.XYToolTipGenerator extend a common superclass
    12
    if (!ObjectUtilities.equal(this.toolTipGenerator, that.toolTipGenerator))
    27
    return false;
    13
    return false;
    28
    if (!PaintUtilities.equal(this.radiusGridlinePaint, that.radiusGridlinePaint))
    28
    if (!PaintUtilities.equal(this.radiusGridlinePaint, that.radiusGridlinePaint))
    22
    if (!this.backgroundAnnotations.equals(that.backgroundAnnotations))
    Differences
    Expression1Expression2Difference
    PaintUtilities.equal(this.radiusGridlinePaint,that.radiusGridlinePaint)this.backgroundAnnotations.equals(that.backgroundAnnotations)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression PaintUtilities.equal(this.radiusGridlinePaint,that.radiusGridlinePaint) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression this.backgroundAnnotations.equals(that.backgroundAnnotations) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    22
    if (!this.backgroundAnnotations.equals(that.backgroundAnnotations))
    29
    return false;
    23
    return false;
    30
    if (!this.cornerTextItems.equals(that.cornerTextItems))
    30
    if (!this.cornerTextItems.equals(that.cornerTextItems))
    20
    if (!this.foregroundAnnotations.equals(that.foregroundAnnotations))
    Differences
    Expression1Expression2Difference
    org.jfree.chart.plot.PolarPlotorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    cornerTextItemsforegroundAnnotationsVARIABLE_NAME_MISMATCH
    cornerTextItemsforegroundAnnotationsVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression that.cornerTextItems cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.foregroundAnnotations cannot be parameterized, because it has dependencies to/from statements that will be extracted
    20
    if (!this.foregroundAnnotations.equals(that.foregroundAnnotations))
    31
    return false;
    21
    return false;
    Precondition Violations (51)
    Row Violation
    1Type org.jfree.chart.axis.ValueAxis of variable this.axis does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable this.itemLabelGenerator
    2Expression that.axis cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression that.itemLabelGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Type org.jfree.chart.axis.ValueAxis of variable that.axis does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable that.itemLabelGenerator
    5Type org.jfree.chart.renderer.PolarItemRenderer of variable this.renderer does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable this.baseItemLabelGenerator
    6Expression that.renderer cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression that.baseItemLabelGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Type org.jfree.chart.renderer.PolarItemRenderer of variable that.renderer does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable that.baseItemLabelGenerator
    9Expression that.angleTickUnit cannot be unified with expression that.itemLabelGeneratorList , because common superclass type java.io.Serializable cannot be passed as an argument to public boolean equals(java.lang.Object)
    10Expression that.angleTickUnit cannot be parameterized, because it has dependencies to/from statements that will be extracted
    11Expression that.itemLabelGeneratorList cannot be parameterized, because it has dependencies to/from statements that will be extracted
    12Type org.jfree.chart.axis.TickUnit of variable that.angleTickUnit does not match with type org.jfree.util.ObjectList of variable that.itemLabelGeneratorList
    13Type org.jfree.chart.axis.TickUnit of variable this.angleTickUnit does not match with type org.jfree.util.ObjectList of variable this.itemLabelGeneratorList
    14Type boolean of variable this.angleGridlinesVisible does not match with type int of variable this.defaultEntityRadius
    15Expression that.angleGridlinesVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted
    16Expression that.defaultEntityRadius cannot be parameterized, because it has dependencies to/from statements that will be extracted
    17Type boolean of variable that.angleGridlinesVisible does not match with type int of variable that.defaultEntityRadius
    18Unmatched statement if(this.angleLabelsVisible != that.angleLabelsVisible) cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    19Unmatched return false;
    20Expression that.angleLabelFont cannot be unified with expression that.toolTipGeneratorList , because common superclass type java.io.Serializable cannot be passed as an argument to public boolean equals(java.lang.Object)
    21Expression that.angleLabelFont cannot be parameterized, because it has dependencies to/from statements that will be extracted
    22Expression that.toolTipGeneratorList cannot be parameterized, because it has dependencies to/from statements that will be extracted
    23Type java.awt.Font of variable that.angleLabelFont does not match with type org.jfree.util.ObjectList of variable that.toolTipGeneratorList
    24Type java.awt.Font of variable this.angleLabelFont does not match with type org.jfree.util.ObjectList of variable this.toolTipGeneratorList
    25Type java.awt.Paint of variable this.angleLabelPaint does not match with type org.jfree.chart.urls.XYURLGenerator of variable this.urlGenerator
    26Expression that.angleLabelPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    27Expression that.urlGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    28Type java.awt.Paint of variable that.angleLabelPaint does not match with type org.jfree.chart.urls.XYURLGenerator of variable that.urlGenerator
    29Type org.jfree.util.PaintUtilities does not match with type org.jfree.util.ObjectUtilities
    30Type java.awt.Stroke of variable this.angleGridlineStroke does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable this.baseToolTipGenerator
    31Expression that.angleGridlineStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted
    32Expression that.baseToolTipGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    33Type java.awt.Stroke of variable that.angleGridlineStroke does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable that.baseToolTipGenerator
    34Type java.awt.Paint of variable this.angleGridlinePaint does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable this.legendItemLabelGenerator
    35Expression that.angleGridlinePaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    36Expression that.legendItemLabelGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    37Type java.awt.Paint of variable that.angleGridlinePaint does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable that.legendItemLabelGenerator
    38Type org.jfree.util.PaintUtilities does not match with type org.jfree.util.ObjectUtilities
    39Unmatched statement if(this.radiusGridlinesVisible != that.radiusGridlinesVisible) cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    40Unmatched return false;
    41Type java.awt.Stroke of variable this.radiusGridlineStroke does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable this.toolTipGenerator
    42Expression that.radiusGridlineStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted
    43Expression that.toolTipGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    44Type java.awt.Stroke of variable that.radiusGridlineStroke does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable that.toolTipGenerator
    45Expression PaintUtilities.equal(this.radiusGridlinePaint,that.radiusGridlinePaint) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    46Expression this.backgroundAnnotations.equals(that.backgroundAnnotations) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    47Expression that.cornerTextItems cannot be parameterized, because it has dependencies to/from statements that will be extracted
    48Expression that.foregroundAnnotations cannot be parameterized, because it has dependencies to/from statements that will be extracted
    49Clone fragment #1 returns variable that with type org.jfree.chart.plot.PolarPlot , while Clone fragment #2 returns variable that with type org.jfree.chart.renderer.xy.AbstractXYItemRenderer
    50Not all possible execution flows end in a return statement
    51The refactoring of the clones is infeasible, because classes org.jfree.chart.plot.PolarPlot and org.jfree.chart.renderer.xy.AbstractXYItemRenderer do not have a common superclass