if (obj == this) { return true; } if (!(obj instanceof JFreeChart)) { return false; } JFreeChart that = (JFreeChart) obj; if (!this.renderingHints.equals(that.renderingHints)) { return false; } if (this.borderVisible != that.borderVisible) { return false; } if (!ObjectUtilities.equal(this.borderStroke, that.borderStroke)) { return false; } if (!PaintUtilities.equal(this.borderPaint, that.borderPaint)) { return false; } if (!this.padding.equals(that.padding)) { return false; } if (!ObjectUtilities.equal(this.title, that.title)) { return false; } if (!ObjectUtilities.equal(this.subtitles, that.subtitles)) { return false; } if (!ObjectUtilities.equal(this.plot, that.plot)) { return false; } if (!PaintUtilities.equal( this.backgroundPaint, that.backgroundPaint )) { return false; } if (!ObjectUtilities.equal(this.backgroundImage, that.backgroundImage)) { return false; } if (this.backgroundImageAlignment != that.backgroundImageAlignment) { return false; } if (this.backgroundImageAlpha != that.backgroundImageAlpha) { return false; } if (this.notify != that.notify) { return false; } return true;
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);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/JFreeChart.java File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PolarPlot.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 JFreeChart)) {
4
        if (!(obj instanceof PolarPlot)) {
5
            return false;
5
            return false;
6
        }
6
        }
7
        JFreeChart that = (JFreeChart) obj;
7
        PolarPlot that = (PolarPlot) obj;
8
        if (!this.renderingHints.equals(that.renderingHints)) {
8
        if (!ObjectUtilities.equal(this.axis, that.axis)) {
9
            return false;
9
            return false;
10
        }
10
        }
11
        if (this.borderVisible != that.borderVisible) {
11
        if (!ObjectUtilities.equal(this.renderer, that.renderer)) {
12
            return false;
12
            return false;
13
        }
13
        }
14
        if (!ObjectUtilities.equal(this.borderStroke, that.borderStroke)) {
14
        if (!this.angleTickUnit.equals(that.angleTickUnit)) {
15
            return false;
15
            return false;
16
        }
16
        }
17
        if (!PaintUtilities.equal(this.borderPaint, that.borderPaint)) {
17
        if (this.angleGridlinesVisible != that.angleGridlinesVisible) {
18
            return false;
18
            return false;
19
        }
19
        }
20
        if (!this.padding.equals(that.padding)) {
20
        if (this.angleLabelsVisible != that.angleLabelsVisible) {
21
            return false;
21
            return false;
22
        }
22
        }
23
        if (!ObjectUtilities.equal(this.title, that.title)) {
23
        if (!this.angleLabelFont.equals(that.angleLabelFont)) {
24
            return false;
24
            return false;
25
        }
25
        }
26
        if (!ObjectUtilities.equal(this.subtitles, that.subtitles)) {
26
        if (!PaintUtilities.equal(this.angleLabelPaint, that.angleLabelPaint)) {
27
            return false;
27
            return false;
28
        }
28
        }
29
        if (!ObjectUtilities.equal(this.plot, that.plot
29
        if (!ObjectUtilities.equal(this.angleGridlineStroke,
30
)) {
30
                that.angleGridlineStroke)) {
31
            return false;
31
            return false;
32
        }
32
        }
33
        if (!PaintUtilities.equal(
33
        if (!PaintUtilities.equal(
34
            this.backgroundPaint, that.backgroundPaint
34
            this.angleGridlinePaint, that.angleGridlinePaint
35
        )) {
35
        )) {
36
            return false;
36
            return false;
37
        }
37
        }
38
        if (!ObjectUtilities.equal(this.backgroundImage,
38
        if (
39
                that.backgroundImage)) {
39
this.radiusGridlinesVisible != that.radiusGridlinesVisible) {
40
            return false;
40
            return false;
41
        }
41
        }
42
        if (this.backgroundImageAlignment != that.backgroundImageAlignment
42
        if (!ObjectUtilities.equal(this.radiusGridlineStroke,
43
) {
43
                that.radiusGridlineStroke)) {
44
            return false;
44
            return false;
45
        }
45
        }
46
        if (this.backgroundImageAlpha != that.backgroundImageAlpha
46
        if (!PaintUtilities.equal(this.radiusGridlinePaint,
47
) {
47
                that.radiusGridlinePaint)) {
48
            return false;
48
            return false;
49
        }
49
        }
50
        if (this.notify != that.notify) {
50
        if (!this.cornerTextItems.equals(that.cornerTextItems)) {
51
            return false;
51
            return false;
52
        }
52
        }
53
        return true;
53
        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)106.3
Clones locationClones are in different classes
Number of node comparisons412
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements28
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)27.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (obj == this)
    1
    if (obj == this)
    2
    return true;
    2
    return true;
    3
    if (!(obj instanceof JFreeChart))
    3
    if (!(obj instanceof JFreeChart))
    3
    if (!(obj instanceof PolarPlot))
    Differences
    Expression1Expression2Difference
    org.jfree.chart.JFreeChartorg.jfree.chart.plot.PolarPlotVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.chart.JFreeChart does not match with type org.jfree.chart.plot.PolarPlot
    • Make classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot extend a common superclass
    3
    if (!(obj instanceof PolarPlot))
    4
    return false;
    4
    return false;
                                                                      
    5
    PolarPlot that = (PolarPlot)obj;
    5
    JFreeChart that = (JFreeChart)obj;
                                                                          
    6
    if (!this.renderingHints.equals(that.renderingHints))
    6
    if (!this.renderingHints.equals(that.renderingHints))
    10
    if (!this.angleTickUnit.equals(that.angleTickUnit))
    Differences
    Expression1Expression2Difference
    org.jfree.chart.JFreeChartorg.jfree.chart.plot.PolarPlotVARIABLE_TYPE_MISMATCH
    renderingHintsangleTickUnitVARIABLE_NAME_MISMATCH
    java.awt.RenderingHintsorg.jfree.chart.axis.TickUnitVARIABLE_TYPE_MISMATCH
    renderingHintsangleTickUnitVARIABLE_NAME_MISMATCH
    java.awt.RenderingHintsorg.jfree.chart.axis.TickUnitVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type java.awt.RenderingHints of variable that.renderingHints does not match with type org.jfree.chart.axis.TickUnit of variable that.angleTickUnit
    • Make classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot extend a common superclass
    Expression that.renderingHints cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.angleTickUnit cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type java.awt.RenderingHints of variable that.renderingHints does not match with type org.jfree.chart.axis.TickUnit of variable that.angleTickUnit
    • Make classes java.awt.RenderingHints and org.jfree.chart.axis.TickUnit extend a common superclass
    Type java.awt.RenderingHints of variable this.renderingHints does not match with type org.jfree.chart.axis.TickUnit of variable this.angleTickUnit
    • Make classes java.awt.RenderingHints and org.jfree.chart.axis.TickUnit extend a common superclass
    10
    if (!this.angleTickUnit.equals(that.angleTickUnit))
    7
    return false;
    11
    return false;
    8
    if (this.borderVisible != that.borderVisible)
    8
    if (this.borderVisible != that.borderVisible)
    12
    if (this.angleGridlinesVisible != that.angleGridlinesVisible)
    Differences
    Expression1Expression2Difference
    borderVisibleangleGridlinesVisibleVARIABLE_NAME_MISMATCH
    org.jfree.chart.JFreeChartorg.jfree.chart.plot.PolarPlotVARIABLE_TYPE_MISMATCH
    borderVisibleangleGridlinesVisibleVARIABLE_NAME_MISMATCH
    Preondition Violations
    Type boolean of variable that.borderVisible does not match with type boolean of variable that.angleGridlinesVisible
    • Make classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot extend a common superclass
    Expression that.borderVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.angleGridlinesVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted
    12
    if (this.angleGridlinesVisible != that.angleGridlinesVisible)
    9
    return false;
    13
    return false;
    10
    if (!ObjectUtilities.equal(this.borderStroke, that.borderStroke))
    10
    if (!ObjectUtilities.equal(this.borderStroke, that.borderStroke))
    20
    if (!ObjectUtilities.equal(this.angleGridlineStroke, that.angleGridlineStroke))
    Differences
    Expression1Expression2Difference
    borderStrokeangleGridlineStrokeVARIABLE_NAME_MISMATCH
    org.jfree.chart.JFreeChartorg.jfree.chart.plot.PolarPlotVARIABLE_TYPE_MISMATCH
    borderStrokeangleGridlineStrokeVARIABLE_NAME_MISMATCH
    Preondition Violations
    Type java.awt.Stroke of variable that.borderStroke does not match with type java.awt.Stroke of variable that.angleGridlineStroke
    • Make classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot extend a common superclass
    Expression that.borderStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.angleGridlineStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted
    20
    if (!ObjectUtilities.equal(this.angleGridlineStroke, that.angleGridlineStroke))
    11
    return false;
    21
    return false;
    12
    if (!PaintUtilities.equal(this.borderPaint, that.borderPaint))
    12
    if (!PaintUtilities.equal(this.borderPaint, that.borderPaint))
    18
    if (!PaintUtilities.equal(this.angleLabelPaint, that.angleLabelPaint))
    Differences
    Expression1Expression2Difference
    borderPaintangleLabelPaintVARIABLE_NAME_MISMATCH
    org.jfree.chart.JFreeChartorg.jfree.chart.plot.PolarPlotVARIABLE_TYPE_MISMATCH
    borderPaintangleLabelPaintVARIABLE_NAME_MISMATCH
    Preondition Violations
    Type java.awt.Paint of variable that.borderPaint does not match with type java.awt.Paint of variable that.angleLabelPaint
    • Make classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot extend a common superclass
    Expression that.borderPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.angleLabelPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    18
    if (!PaintUtilities.equal(this.angleLabelPaint, that.angleLabelPaint))
    13
    return false;
    19
    return false;
    14
    if (!this.padding.equals(that.padding))
    14
    if (!this.padding.equals(that.padding))
    16
    if (!this.angleLabelFont.equals(that.angleLabelFont))
    Differences
    Expression1Expression2Difference
    org.jfree.chart.JFreeChartorg.jfree.chart.plot.PolarPlotVARIABLE_TYPE_MISMATCH
    paddingangleLabelFontVARIABLE_NAME_MISMATCH
    org.jfree.ui.RectangleInsetsjava.awt.FontVARIABLE_TYPE_MISMATCH
    paddingangleLabelFontVARIABLE_NAME_MISMATCH
    org.jfree.ui.RectangleInsetsjava.awt.FontVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.ui.RectangleInsets of variable that.padding does not match with type java.awt.Font of variable that.angleLabelFont
    • Make classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot extend a common superclass
    Expression that.padding cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.angleLabelFont cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.jfree.ui.RectangleInsets of variable that.padding does not match with type java.awt.Font of variable that.angleLabelFont
    • Make classes org.jfree.ui.RectangleInsets and java.awt.Font extend a common superclass
    Type org.jfree.ui.RectangleInsets of variable this.padding does not match with type java.awt.Font of variable this.angleLabelFont
    • Make classes org.jfree.ui.RectangleInsets and java.awt.Font extend a common superclass
    16
    if (!this.angleLabelFont.equals(that.angleLabelFont))
    15
    return false;
    17
    return false;
    16
    if (!ObjectUtilities.equal(this.title, that.title))
    16
    if (!ObjectUtilities.equal(this.title, that.title))
    8
    if (!ObjectUtilities.equal(this.renderer, that.renderer))
    Differences
    Expression1Expression2Difference
    titlerendererVARIABLE_NAME_MISMATCH
    org.jfree.chart.title.TextTitleorg.jfree.chart.renderer.PolarItemRendererVARIABLE_TYPE_MISMATCH
    org.jfree.chart.JFreeChartorg.jfree.chart.plot.PolarPlotVARIABLE_TYPE_MISMATCH
    titlerendererVARIABLE_NAME_MISMATCH
    org.jfree.chart.title.TextTitleorg.jfree.chart.renderer.PolarItemRendererVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.chart.title.TextTitle of variable this.title does not match with type org.jfree.chart.renderer.PolarItemRenderer of variable this.renderer
    • Make classes org.jfree.chart.title.TextTitle and org.jfree.chart.renderer.PolarItemRenderer extend a common superclass
    Type org.jfree.chart.title.TextTitle of variable that.title does not match with type org.jfree.chart.renderer.PolarItemRenderer of variable that.renderer
    • Make classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot extend a common superclass
    Expression that.title cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.renderer cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.jfree.chart.title.TextTitle of variable that.title does not match with type org.jfree.chart.renderer.PolarItemRenderer of variable that.renderer
    • Make classes org.jfree.chart.title.TextTitle and org.jfree.chart.renderer.PolarItemRenderer extend a common superclass
    8
    if (!ObjectUtilities.equal(this.renderer, that.renderer))
    17
    return false;
    9
    return false;
    18
    if (!ObjectUtilities.equal(this.subtitles, that.subtitles))
    18
    if (!ObjectUtilities.equal(this.subtitles, that.subtitles))
    26
    if (!ObjectUtilities.equal(this.radiusGridlineStroke, that.radiusGridlineStroke))
    Differences
    Expression1Expression2Difference
    subtitlesradiusGridlineStrokeVARIABLE_NAME_MISMATCH
    java.util.Listjava.awt.StrokeVARIABLE_TYPE_MISMATCH
    org.jfree.chart.JFreeChartorg.jfree.chart.plot.PolarPlotVARIABLE_TYPE_MISMATCH
    subtitlesradiusGridlineStrokeVARIABLE_NAME_MISMATCH
    java.util.Listjava.awt.StrokeVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type java.util.List of variable this.subtitles does not match with type java.awt.Stroke of variable this.radiusGridlineStroke
    • Make classes java.util.List and java.awt.Stroke extend a common superclass
    Type java.util.List of variable that.subtitles does not match with type java.awt.Stroke of variable that.radiusGridlineStroke
    • Make classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot extend a common superclass
    Expression that.subtitles cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.radiusGridlineStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type java.util.List of variable that.subtitles does not match with type java.awt.Stroke of variable that.radiusGridlineStroke
    • Make classes java.util.List and java.awt.Stroke extend a common superclass
    26
    if (!ObjectUtilities.equal(this.radiusGridlineStroke, that.radiusGridlineStroke))
    19
    return false;
    27
    return false;
    20
    if (!ObjectUtilities.equal(this.plot, that.plot))
    20
    if (!ObjectUtilities.equal(this.plot, that.plot))
    6
    if (!ObjectUtilities.equal(this.axis, that.axis))
    Differences
    Expression1Expression2Difference
    plotaxisVARIABLE_NAME_MISMATCH
    org.jfree.chart.plot.Plotorg.jfree.chart.axis.ValueAxisSUBCLASS_TYPE_MISMATCH
    org.jfree.chart.JFreeChartorg.jfree.chart.plot.PolarPlotVARIABLE_TYPE_MISMATCH
    plotaxisVARIABLE_NAME_MISMATCH
    org.jfree.chart.plot.Plotorg.jfree.chart.axis.ValueAxisSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression this.plot cannot be unified with expression this.axis , because common superclass type org.jfree.util.PublicCloneable cannot be passed as an argument to public static boolean equal(java.lang.Object, java.lang.Object)
    Type org.jfree.chart.plot.Plot of variable that.plot does not match with type org.jfree.chart.axis.ValueAxis of variable that.axis
    • Make classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot extend a common superclass
    Expression that.plot cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.axis cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.plot cannot be unified with expression that.axis , because common superclass type org.jfree.util.PublicCloneable cannot be passed as an argument to public static boolean equal(java.lang.Object, java.lang.Object)
    6
    if (!ObjectUtilities.equal(this.axis, that.axis))
    21
    return false;
    7
    return false;
    22
    if (!PaintUtilities.equal(this.backgroundPaint, that.backgroundPaint))
    22
    if (!PaintUtilities.equal(this.backgroundPaint, that.backgroundPaint))
    22
    if (!PaintUtilities.equal(this.angleGridlinePaint, that.angleGridlinePaint))
    Differences
    Expression1Expression2Difference
    backgroundPaintangleGridlinePaintVARIABLE_NAME_MISMATCH
    org.jfree.chart.JFreeChartorg.jfree.chart.plot.PolarPlotVARIABLE_TYPE_MISMATCH
    backgroundPaintangleGridlinePaintVARIABLE_NAME_MISMATCH
    Preondition Violations
    Type java.awt.Paint of variable that.backgroundPaint does not match with type java.awt.Paint of variable that.angleGridlinePaint
    • Make classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot extend a common superclass
    Expression that.backgroundPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.angleGridlinePaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    22
    if (!PaintUtilities.equal(this.angleGridlinePaint, that.angleGridlinePaint))
    23
    return false;
    23
    return false;
    24
    if (!ObjectUtilities.equal(this.backgroundImage, that.backgroundImage))
    24
    if (!ObjectUtilities.equal(this.backgroundImage, that.backgroundImage))
    28
    if (!PaintUtilities.equal(this.radiusGridlinePaint, that.radiusGridlinePaint))
    Differences
    Expression1Expression2Difference
    backgroundImageradiusGridlinePaintVARIABLE_NAME_MISMATCH
    java.awt.Imagejava.awt.PaintVARIABLE_TYPE_MISMATCH
    org.jfree.chart.JFreeChartorg.jfree.chart.plot.PolarPlotVARIABLE_TYPE_MISMATCH
    backgroundImageradiusGridlinePaintVARIABLE_NAME_MISMATCH
    java.awt.Imagejava.awt.PaintVARIABLE_TYPE_MISMATCH
    org.jfree.util.ObjectUtilitiesorg.jfree.util.PaintUtilitiesVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type java.awt.Image of variable this.backgroundImage does not match with type java.awt.Paint of variable this.radiusGridlinePaint
    • Make classes java.awt.Image and java.awt.Paint extend a common superclass
    Type java.awt.Image of variable that.backgroundImage does not match with type java.awt.Paint of variable that.radiusGridlinePaint
    • Make classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot extend a common superclass
    Expression that.backgroundImage cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.radiusGridlinePaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type java.awt.Image of variable that.backgroundImage does not match with type java.awt.Paint of variable that.radiusGridlinePaint
    • Make classes java.awt.Image and java.awt.Paint extend a common superclass
    Type org.jfree.util.ObjectUtilities does not match with type org.jfree.util.PaintUtilities
    • Make classes org.jfree.util.ObjectUtilities and org.jfree.util.PaintUtilities extend a common superclass
    28
    if (!PaintUtilities.equal(this.radiusGridlinePaint, that.radiusGridlinePaint))
    25
    return false;
    29
    return false;
    26
    if (this.backgroundImageAlignment != that.backgroundImageAlignment)
    26
    if (this.backgroundImageAlignment != that.backgroundImageAlignment)
    24
    if (this.radiusGridlinesVisible != that.radiusGridlinesVisible)
    Differences
    Expression1Expression2Difference
    backgroundImageAlignmentradiusGridlinesVisibleVARIABLE_NAME_MISMATCH
    intbooleanVARIABLE_TYPE_MISMATCH
    org.jfree.chart.JFreeChartorg.jfree.chart.plot.PolarPlotVARIABLE_TYPE_MISMATCH
    backgroundImageAlignmentradiusGridlinesVisibleVARIABLE_NAME_MISMATCH
    intbooleanVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type int of variable this.backgroundImageAlignment does not match with type boolean of variable this.radiusGridlinesVisible
    Type int of variable that.backgroundImageAlignment does not match with type boolean of variable that.radiusGridlinesVisible
    • Make classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot extend a common superclass
    Expression that.backgroundImageAlignment cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.radiusGridlinesVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type int of variable that.backgroundImageAlignment does not match with type boolean of variable that.radiusGridlinesVisible
    24
    if (this.radiusGridlinesVisible != that.radiusGridlinesVisible)
    27
    return false;
    25
    return false;
    28
    if (this.backgroundImageAlpha != that.backgroundImageAlpha)
    28
    if (this.backgroundImageAlpha != that.backgroundImageAlpha)
    14
    if (this.angleLabelsVisible != that.angleLabelsVisible)
    Differences
    Expression1Expression2Difference
    backgroundImageAlphaangleLabelsVisibleVARIABLE_NAME_MISMATCH
    floatbooleanVARIABLE_TYPE_MISMATCH
    org.jfree.chart.JFreeChartorg.jfree.chart.plot.PolarPlotVARIABLE_TYPE_MISMATCH
    backgroundImageAlphaangleLabelsVisibleVARIABLE_NAME_MISMATCH
    floatbooleanVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type float of variable this.backgroundImageAlpha does not match with type boolean of variable this.angleLabelsVisible
    Type float of variable that.backgroundImageAlpha does not match with type boolean of variable that.angleLabelsVisible
    • Make classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot extend a common superclass
    Expression that.backgroundImageAlpha cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.angleLabelsVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type float of variable that.backgroundImageAlpha does not match with type boolean of variable that.angleLabelsVisible
    14
    if (this.angleLabelsVisible != that.angleLabelsVisible)
    29
    return false;
    15
    return false;
    Precondition Violations (56)
    Row Violation
    1Type org.jfree.chart.JFreeChart does not match with type org.jfree.chart.plot.PolarPlot
    2Type java.awt.RenderingHints of variable that.renderingHints does not match with type org.jfree.chart.axis.TickUnit of variable that.angleTickUnit
    3Expression that.renderingHints cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression that.angleTickUnit cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Type java.awt.RenderingHints of variable that.renderingHints does not match with type org.jfree.chart.axis.TickUnit of variable that.angleTickUnit
    6Type java.awt.RenderingHints of variable this.renderingHints does not match with type org.jfree.chart.axis.TickUnit of variable this.angleTickUnit
    7Type boolean of variable that.borderVisible does not match with type boolean of variable that.angleGridlinesVisible
    8Expression that.borderVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression that.angleGridlinesVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted
    10Type java.awt.Stroke of variable that.borderStroke does not match with type java.awt.Stroke of variable that.angleGridlineStroke
    11Expression that.borderStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted
    12Expression that.angleGridlineStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted
    13Type java.awt.Paint of variable that.borderPaint does not match with type java.awt.Paint of variable that.angleLabelPaint
    14Expression that.borderPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    15Expression that.angleLabelPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    16Type org.jfree.ui.RectangleInsets of variable that.padding does not match with type java.awt.Font of variable that.angleLabelFont
    17Expression that.padding cannot be parameterized, because it has dependencies to/from statements that will be extracted
    18Expression that.angleLabelFont cannot be parameterized, because it has dependencies to/from statements that will be extracted
    19Type org.jfree.ui.RectangleInsets of variable that.padding does not match with type java.awt.Font of variable that.angleLabelFont
    20Type org.jfree.ui.RectangleInsets of variable this.padding does not match with type java.awt.Font of variable this.angleLabelFont
    21Type org.jfree.chart.title.TextTitle of variable this.title does not match with type org.jfree.chart.renderer.PolarItemRenderer of variable this.renderer
    22Type org.jfree.chart.title.TextTitle of variable that.title does not match with type org.jfree.chart.renderer.PolarItemRenderer of variable that.renderer
    23Expression that.title cannot be parameterized, because it has dependencies to/from statements that will be extracted
    24Expression that.renderer cannot be parameterized, because it has dependencies to/from statements that will be extracted
    25Type org.jfree.chart.title.TextTitle of variable that.title does not match with type org.jfree.chart.renderer.PolarItemRenderer of variable that.renderer
    26Type java.util.List of variable this.subtitles does not match with type java.awt.Stroke of variable this.radiusGridlineStroke
    27Type java.util.List of variable that.subtitles does not match with type java.awt.Stroke of variable that.radiusGridlineStroke
    28Expression that.subtitles cannot be parameterized, because it has dependencies to/from statements that will be extracted
    29Expression that.radiusGridlineStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted
    30Type java.util.List of variable that.subtitles does not match with type java.awt.Stroke of variable that.radiusGridlineStroke
    31Expression this.plot cannot be unified with expression this.axis , because common superclass type org.jfree.util.PublicCloneable cannot be passed as an argument to public static boolean equal(java.lang.Object, java.lang.Object)
    32Type org.jfree.chart.plot.Plot of variable that.plot does not match with type org.jfree.chart.axis.ValueAxis of variable that.axis
    33Expression that.plot cannot be parameterized, because it has dependencies to/from statements that will be extracted
    34Expression that.axis cannot be parameterized, because it has dependencies to/from statements that will be extracted
    35Expression that.plot cannot be unified with expression that.axis , because common superclass type org.jfree.util.PublicCloneable cannot be passed as an argument to public static boolean equal(java.lang.Object, java.lang.Object)
    36Type java.awt.Paint of variable that.backgroundPaint does not match with type java.awt.Paint of variable that.angleGridlinePaint
    37Expression that.backgroundPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    38Expression that.angleGridlinePaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    39Type java.awt.Image of variable this.backgroundImage does not match with type java.awt.Paint of variable this.radiusGridlinePaint
    40Type java.awt.Image of variable that.backgroundImage does not match with type java.awt.Paint of variable that.radiusGridlinePaint
    41Expression that.backgroundImage cannot be parameterized, because it has dependencies to/from statements that will be extracted
    42Expression that.radiusGridlinePaint cannot be parameterized, because it has dependencies to/from statements that will be extracted
    43Type java.awt.Image of variable that.backgroundImage does not match with type java.awt.Paint of variable that.radiusGridlinePaint
    44Type org.jfree.util.ObjectUtilities does not match with type org.jfree.util.PaintUtilities
    45Type int of variable this.backgroundImageAlignment does not match with type boolean of variable this.radiusGridlinesVisible
    46Type int of variable that.backgroundImageAlignment does not match with type boolean of variable that.radiusGridlinesVisible
    47Expression that.backgroundImageAlignment cannot be parameterized, because it has dependencies to/from statements that will be extracted
    48Expression that.radiusGridlinesVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted
    49Type int of variable that.backgroundImageAlignment does not match with type boolean of variable that.radiusGridlinesVisible
    50Type float of variable this.backgroundImageAlpha does not match with type boolean of variable this.angleLabelsVisible
    51Type float of variable that.backgroundImageAlpha does not match with type boolean of variable that.angleLabelsVisible
    52Expression that.backgroundImageAlpha cannot be parameterized, because it has dependencies to/from statements that will be extracted
    53Expression that.angleLabelsVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted
    54Type float of variable that.backgroundImageAlpha does not match with type boolean of variable that.angleLabelsVisible
    55Not all possible execution flows end in a return statement
    56The refactoring of the clones is infeasible, because classes org.jfree.chart.JFreeChart and org.jfree.chart.plot.PolarPlot do not have a common superclass