if (obj == this) { return true; } if (!(obj instanceof AbstractCategoryItemRenderer)) { return false; } AbstractCategoryItemRenderer that = (AbstractCategoryItemRenderer) obj; if (!ObjectUtilities.equal(this.itemLabelGenerator, that.itemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.itemLabelGeneratorList, that.itemLabelGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.baseItemLabelGenerator, that.baseItemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.toolTipGenerator, that.toolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.toolTipGeneratorList, that.toolTipGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.baseToolTipGenerator, that.baseToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.itemURLGenerator, that.itemURLGenerator)) { return false; } if (!ObjectUtilities.equal(this.itemURLGeneratorList, that.itemURLGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.baseItemURLGenerator, that.baseItemURLGenerator)) { 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);
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/renderer/category/AbstractCategoryItemRenderer.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: 30 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 AbstractCategoryItemRenderer)) {
4
        if (!(obj instanceof AbstractXYItemRenderer)) {
5
            return false;
5
            return false;
6
        }
6
        }
7
        AbstractCategoryItemRenderer that = (AbstractCategoryItemRenderer) obj;
7
        AbstractXYItemRenderer that = (AbstractXYItemRenderer) obj;
8
        if (!ObjectUtilities.equal(this.itemLabelGenerator,
8
        if (!ObjectUtilities.equal(this.itemLabelGenerator,
9
                that.itemLabelGenerator)) {
9
                that.itemLabelGenerator)) {
10
            return false;
10
            return false;
11
        }
11
        }
12
        if (!ObjectUtilities.equal(this.itemLabelGeneratorList,
12
        if (!this.itemLabelGeneratorList
13
                that.itemLabelGeneratorList)) {
13
.equals(that.itemLabelGeneratorList)) {
14
            return false;
14
            return false;
15
        }
15
        }
16
        if (!ObjectUtilities.equal(this.baseItemLabelGenerator,
16
        if (!ObjectUtilities.equal(this.baseItemLabelGenerator,
17
                that.baseItemLabelGenerator)) {
17
                that.baseItemLabelGenerator)) {
18
            return false;
18
            return false;
19
        }
19
        }
20
        if (!ObjectUtilities.equal(this.toolTipGenerator,
20
        if (!ObjectUtilities.equal(this.toolTipGenerator,
21
                that.toolTipGenerator)) {
21
                that.toolTipGenerator)) {
22
            return false;
22
            return false;
23
        }
23
        }
24
        if (!ObjectUtilities.equal(this.toolTipGeneratorList,
24
        if (!this.toolTipGeneratorList
25
                that.toolTipGeneratorList)) {
25
.equals(that.toolTipGeneratorList)) {
26
            return false;
26
            return false;
27
        }
27
        }
28
        if (!ObjectUtilities.equal(this.baseToolTipGenerator,
28
        if (!ObjectUtilities.equal(this.baseToolTipGenerator,
29
                that.baseToolTipGenerator)) {
29
                that.baseToolTipGenerator)) {
30
            return false;
30
            return false;
31
        }
31
        }
32
        if (!ObjectUtilities.equal(this.itemURLGenerator,
32
        if (!ObjectUtilities.equal(this.urlGenerator,
33
                that.itemURLGenerator)) {
33
 that.urlGenerator)) {
34
            return false;
34
            return false;
35
        }
35
        }
36
        if (!ObjectUtilities.equal(this.itemURLGeneratorList,
36
        if (!
37
                that.itemURLGeneratorList)) {
37
this.foregroundAnnotations.equals(that.foregroundAnnotations)) {
38
            return false;
38
            return false;
39
        }
39
        }
40
        if (!ObjectUtilities.equal(this.baseItemURLGenerator,
40
        if (!this.backgroundAnnotations.equals(that.backgroundAnnotations)) {
41
            return false;
41
        
42
        }
42
        that.baseItemURLGenerator)) {
43
        if (this.defaultEntityRadius != that.defaultEntityRadius) {
43
            return false;
44
            return false;
44
        }
45
        }
45
        if (!ObjectUtilities.equal(this.legendItemLabelGenerator,
46
        if (!ObjectUtilities.equal(this.legendItemLabelGenerator,
46
                that.legendItemLabelGenerator)) {
47
                that.legendItemLabelGenerator)) {
47
            return false;
48
            return false;
48
        }
49
        }
49
        if (!ObjectUtilities.equal(this.legendItemToolTipGenerator,
50
        if (!ObjectUtilities.equal(this.legendItemToolTipGenerator,
50
                that.legendItemToolTipGenerator)) {
51
                that.legendItemToolTipGenerator)) {
51
            return false;
52
            return false;
52
        }
53
        }
53
        if (!ObjectUtilities.equal(this.legendItemURLGenerator,
54
        if (!ObjectUtilities.equal(this.legendItemURLGenerator,
54
                that.legendItemURLGenerator)) {
55
                that.legendItemURLGenerator)) {
55
            return false;
56
            return false;
56
        }
57
        }
57
        return super.equals(obj);
58
        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)39.5
Clones locationClones are in different classes having the same super class
Number of node comparisons490
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements30
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)33.7
    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 AbstractCategoryItemRenderer))
    3
    if (!(obj instanceof AbstractCategoryItemRenderer))
    3
    if (!(obj instanceof AbstractXYItemRenderer))
    Differences
    Expression1Expression2Difference
    org.jfree.chart.renderer.category.AbstractCategoryItemRendererorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    3
    if (!(obj instanceof AbstractXYItemRenderer))
    4
    return false;
    4
    return false;
    5
    AbstractCategoryItemRenderer that = (AbstractCategoryItemRenderer)obj;
    5
    AbstractCategoryItemRenderer that = (AbstractCategoryItemRenderer)obj;
    5
    AbstractXYItemRenderer that = (AbstractXYItemRenderer)obj;
    Differences
    Expression1Expression2Difference
    org.jfree.chart.renderer.category.AbstractCategoryItemRendererorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    org.jfree.chart.renderer.category.AbstractCategoryItemRendererorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    org.jfree.chart.renderer.category.AbstractCategoryItemRendererorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    5
    AbstractXYItemRenderer that = (AbstractXYItemRenderer)obj;
    6
    if (!ObjectUtilities.equal(this.itemLabelGenerator, that.itemLabelGenerator))
    6
    if (!ObjectUtilities.equal(this.itemLabelGenerator, that.itemLabelGenerator))
    6
    if (!ObjectUtilities.equal(this.itemLabelGenerator, that.itemLabelGenerator))
    Differences
    Expression1Expression2Difference
    org.jfree.chart.labels.CategoryItemLabelGeneratororg.jfree.chart.labels.XYItemLabelGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.renderer.category.AbstractCategoryItemRendererorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    org.jfree.chart.labels.CategoryItemLabelGeneratororg.jfree.chart.labels.XYItemLabelGeneratorVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.chart.labels.CategoryItemLabelGenerator of variable this.itemLabelGenerator does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable this.itemLabelGenerator
    • Make classes org.jfree.chart.labels.CategoryItemLabelGenerator and org.jfree.chart.labels.XYItemLabelGenerator extend a common superclass
    Expression that.itemLabelGenerator 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.labels.CategoryItemLabelGenerator of variable that.itemLabelGenerator does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable that.itemLabelGenerator
    • Make classes org.jfree.chart.labels.CategoryItemLabelGenerator 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.itemLabelGeneratorList, that.itemLabelGeneratorList))
    8
    if (!ObjectUtilities.equal(this.itemLabelGeneratorList, that.itemLabelGeneratorList))
    10
    if (!ObjectUtilities.equal(this.baseItemLabelGenerator, that.baseItemLabelGenerator))
    Differences
    Expression1Expression2Difference
    itemLabelGeneratorListbaseItemLabelGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.util.ObjectListorg.jfree.chart.labels.XYItemLabelGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.renderer.category.AbstractCategoryItemRendererorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    itemLabelGeneratorListbaseItemLabelGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.util.ObjectListorg.jfree.chart.labels.XYItemLabelGeneratorVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.util.ObjectList of variable this.itemLabelGeneratorList does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable this.baseItemLabelGenerator
    • Make classes org.jfree.util.ObjectList and org.jfree.chart.labels.XYItemLabelGenerator extend a common superclass
    Expression that.itemLabelGeneratorList 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.util.ObjectList of variable that.itemLabelGeneratorList does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable that.baseItemLabelGenerator
    • Make classes org.jfree.util.ObjectList 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 (!ObjectUtilities.equal(this.baseItemLabelGenerator, that.baseItemLabelGenerator))
    10
    if (!ObjectUtilities.equal(this.baseItemLabelGenerator, that.baseItemLabelGenerator))
    12
    if (!ObjectUtilities.equal(this.toolTipGenerator, that.toolTipGenerator))
    Differences
    Expression1Expression2Difference
    baseItemLabelGeneratortoolTipGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.chart.labels.CategoryItemLabelGeneratororg.jfree.chart.labels.XYToolTipGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.renderer.category.AbstractCategoryItemRendererorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    baseItemLabelGeneratortoolTipGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.chart.labels.CategoryItemLabelGeneratororg.jfree.chart.labels.XYToolTipGeneratorVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.chart.labels.CategoryItemLabelGenerator of variable this.baseItemLabelGenerator does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable this.toolTipGenerator
    • Make classes org.jfree.chart.labels.CategoryItemLabelGenerator and org.jfree.chart.labels.XYToolTipGenerator extend a common superclass
    Expression that.baseItemLabelGenerator 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 org.jfree.chart.labels.CategoryItemLabelGenerator of variable that.baseItemLabelGenerator does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable that.toolTipGenerator
    • Make classes org.jfree.chart.labels.CategoryItemLabelGenerator and org.jfree.chart.labels.XYToolTipGenerator extend a common superclass
    12
    if (!ObjectUtilities.equal(this.toolTipGenerator, that.toolTipGenerator))
    11
    return false;
    13
    return false;
    12
    if (!ObjectUtilities.equal(this.toolTipGenerator, that.toolTipGenerator))
    12
    if (!ObjectUtilities.equal(this.toolTipGenerator, that.toolTipGenerator))
    16
    if (!ObjectUtilities.equal(this.baseToolTipGenerator, that.baseToolTipGenerator))
    Differences
    Expression1Expression2Difference
    toolTipGeneratorbaseToolTipGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.chart.labels.CategoryToolTipGeneratororg.jfree.chart.labels.XYToolTipGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.renderer.category.AbstractCategoryItemRendererorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    toolTipGeneratorbaseToolTipGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.chart.labels.CategoryToolTipGeneratororg.jfree.chart.labels.XYToolTipGeneratorVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.chart.labels.CategoryToolTipGenerator of variable this.toolTipGenerator does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable this.baseToolTipGenerator
    • Make classes org.jfree.chart.labels.CategoryToolTipGenerator and org.jfree.chart.labels.XYToolTipGenerator extend a common superclass
    Expression that.toolTipGenerator 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 org.jfree.chart.labels.CategoryToolTipGenerator of variable that.toolTipGenerator does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable that.baseToolTipGenerator
    • Make classes org.jfree.chart.labels.CategoryToolTipGenerator and org.jfree.chart.labels.XYToolTipGenerator extend a common superclass
    16
    if (!ObjectUtilities.equal(this.baseToolTipGenerator, that.baseToolTipGenerator))
    13
    return false;
    17
    return false;
    14
    if (!ObjectUtilities.equal(this.toolTipGeneratorList, that.toolTipGeneratorList))
    14
    if (!ObjectUtilities.equal(this.toolTipGeneratorList, that.toolTipGeneratorList))
    18
    if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator))
    Differences
    Expression1Expression2Difference
    toolTipGeneratorListurlGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.util.ObjectListorg.jfree.chart.urls.XYURLGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.renderer.category.AbstractCategoryItemRendererorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    toolTipGeneratorListurlGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.util.ObjectListorg.jfree.chart.urls.XYURLGeneratorVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.util.ObjectList of variable this.toolTipGeneratorList does not match with type org.jfree.chart.urls.XYURLGenerator of variable this.urlGenerator
    • Make classes org.jfree.util.ObjectList and org.jfree.chart.urls.XYURLGenerator extend a common superclass
    Expression that.toolTipGeneratorList 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 org.jfree.util.ObjectList of variable that.toolTipGeneratorList does not match with type org.jfree.chart.urls.XYURLGenerator of variable that.urlGenerator
    • Make classes org.jfree.util.ObjectList and org.jfree.chart.urls.XYURLGenerator extend a common superclass
    18
    if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator))
    15
    return false;
    19
    return false;
                                                                                                                            
    24
    if (this.defaultEntityRadius != that.defaultEntityRadius)
    Preondition Violations
    Unmatched statement if(this.defaultEntityRadius != that.defaultEntityRadius) cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    24
    if (this.defaultEntityRadius != that.defaultEntityRadius)
                                      
    25
    return false;
    Preondition Violations
    Unmatched return false;
    25
    return false;
    16
    if (!ObjectUtilities.equal(this.baseToolTipGenerator, that.baseToolTipGenerator))
    16
    if (!ObjectUtilities.equal(this.baseToolTipGenerator, that.baseToolTipGenerator))
    26
    if (!ObjectUtilities.equal(this.legendItemLabelGenerator, that.legendItemLabelGenerator))
    Differences
    Expression1Expression2Difference
    baseToolTipGeneratorlegendItemLabelGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.chart.labels.CategoryToolTipGeneratororg.jfree.chart.labels.XYSeriesLabelGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.renderer.category.AbstractCategoryItemRendererorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    baseToolTipGeneratorlegendItemLabelGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.chart.labels.CategoryToolTipGeneratororg.jfree.chart.labels.XYSeriesLabelGeneratorVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.chart.labels.CategoryToolTipGenerator of variable this.baseToolTipGenerator does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable this.legendItemLabelGenerator
    • Make classes org.jfree.chart.labels.CategoryToolTipGenerator and org.jfree.chart.labels.XYSeriesLabelGenerator extend a common superclass
    Expression that.baseToolTipGenerator 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 org.jfree.chart.labels.CategoryToolTipGenerator of variable that.baseToolTipGenerator does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable that.legendItemLabelGenerator
    • Make classes org.jfree.chart.labels.CategoryToolTipGenerator and org.jfree.chart.labels.XYSeriesLabelGenerator extend a common superclass
    26
    if (!ObjectUtilities.equal(this.legendItemLabelGenerator, that.legendItemLabelGenerator))
    17
    return false;
    27
    return false;
    18
    if (!ObjectUtilities.equal(this.itemURLGenerator, that.itemURLGenerator))
    18
    if (!ObjectUtilities.equal(this.itemURLGenerator, that.itemURLGenerator))
    28
    if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator))
    Differences
    Expression1Expression2Difference
    itemURLGeneratorlegendItemToolTipGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.chart.urls.CategoryURLGeneratororg.jfree.chart.labels.XYSeriesLabelGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.renderer.category.AbstractCategoryItemRendererorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    itemURLGeneratorlegendItemToolTipGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.chart.urls.CategoryURLGeneratororg.jfree.chart.labels.XYSeriesLabelGeneratorVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.chart.urls.CategoryURLGenerator of variable this.itemURLGenerator does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable this.legendItemToolTipGenerator
    • Make classes org.jfree.chart.urls.CategoryURLGenerator and org.jfree.chart.labels.XYSeriesLabelGenerator extend a common superclass
    Expression that.itemURLGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.legendItemToolTipGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.jfree.chart.urls.CategoryURLGenerator of variable that.itemURLGenerator does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable that.legendItemToolTipGenerator
    • Make classes org.jfree.chart.urls.CategoryURLGenerator and org.jfree.chart.labels.XYSeriesLabelGenerator extend a common superclass
    28
    if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator))
    19
    return false;
    29
    return false;
    20
    if (!ObjectUtilities.equal(this.itemURLGeneratorList, that.itemURLGeneratorList))
    20
    if (!ObjectUtilities.equal(this.itemURLGeneratorList, that.itemURLGeneratorList))
    30
    if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator))
    Differences
    Expression1Expression2Difference
    itemURLGeneratorListlegendItemURLGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.util.ObjectListorg.jfree.chart.labels.XYSeriesLabelGeneratorVARIABLE_TYPE_MISMATCH
    org.jfree.chart.renderer.category.AbstractCategoryItemRendererorg.jfree.chart.renderer.xy.AbstractXYItemRendererSUBCLASS_TYPE_MISMATCH
    itemURLGeneratorListlegendItemURLGeneratorVARIABLE_NAME_MISMATCH
    org.jfree.util.ObjectListorg.jfree.chart.labels.XYSeriesLabelGeneratorVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.util.ObjectList of variable this.itemURLGeneratorList does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable this.legendItemURLGenerator
    • Make classes org.jfree.util.ObjectList and org.jfree.chart.labels.XYSeriesLabelGenerator extend a common superclass
    Expression that.itemURLGeneratorList cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression that.legendItemURLGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.jfree.util.ObjectList of variable that.itemURLGeneratorList does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable that.legendItemURLGenerator
    • Make classes org.jfree.util.ObjectList and org.jfree.chart.labels.XYSeriesLabelGenerator extend a common superclass
    30
    if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator))
    21
    return false;
    31
    return false;
    22
    if (!ObjectUtilities.equal(this.baseItemURLGenerator, that.baseItemURLGenerator))
    22
    if (!ObjectUtilities.equal(this.baseItemURLGenerator, that.baseItemURLGenerator))
    22
    if (!this.backgroundAnnotations.equals(that.backgroundAnnotations))
    Differences
    Expression1Expression2Difference
    ObjectUtilities.equal(this.baseItemURLGenerator,that.baseItemURLGenerator)this.backgroundAnnotations.equals(that.backgroundAnnotations)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression ObjectUtilities.equal(this.baseItemURLGenerator,that.baseItemURLGenerator) 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))
    23
    return false;
    23
    return false;
    24
    if (!ObjectUtilities.equal(this.legendItemLabelGenerator, that.legendItemLabelGenerator))
    24
    if (!ObjectUtilities.equal(this.legendItemLabelGenerator, that.legendItemLabelGenerator))
    20
    if (!this.foregroundAnnotations.equals(that.foregroundAnnotations))
    Differences
    Expression1Expression2Difference
    ObjectUtilities.equal(this.legendItemLabelGenerator,that.legendItemLabelGenerator)this.foregroundAnnotations.equals(that.foregroundAnnotations)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression ObjectUtilities.equal(this.legendItemLabelGenerator,that.legendItemLabelGenerator) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression this.foregroundAnnotations.equals(that.foregroundAnnotations) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    20
    if (!this.foregroundAnnotations.equals(that.foregroundAnnotations))
    25
    return false;
    21
    return false;
    26
    if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator))
    26
    if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator))
    14
    if (!this.toolTipGeneratorList.equals(that.toolTipGeneratorList))
    Differences
    Expression1Expression2Difference
    ObjectUtilities.equal(this.legendItemToolTipGenerator,that.legendItemToolTipGenerator)this.toolTipGeneratorList.equals(that.toolTipGeneratorList)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression ObjectUtilities.equal(this.legendItemToolTipGenerator,that.legendItemToolTipGenerator) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression this.toolTipGeneratorList.equals(that.toolTipGeneratorList) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    14
    if (!this.toolTipGeneratorList.equals(that.toolTipGeneratorList))
    27
    return false;
    15
    return false;
    28
    if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator))
    28
    if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator))
    8
    if (!this.itemLabelGeneratorList.equals(that.itemLabelGeneratorList))
    Differences
    Expression1Expression2Difference
    ObjectUtilities.equal(this.legendItemURLGenerator,that.legendItemURLGenerator)this.itemLabelGeneratorList.equals(that.itemLabelGeneratorList)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression ObjectUtilities.equal(this.legendItemURLGenerator,that.legendItemURLGenerator) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression this.itemLabelGeneratorList.equals(that.itemLabelGeneratorList) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8
    if (!this.itemLabelGeneratorList.equals(that.itemLabelGeneratorList))
    29
    return false;
    9
    return false;
    30
    return super.equals(obj);
    30
    return super.equals(obj);
    32
    return super.equals(obj);
    Preondition Violations
    Super method call return super.equals(obj); cannot be extracted from method
    Super method call return super.equals(obj); cannot be extracted from method
    32
    return super.equals(obj);
    Precondition Violations (46)
    Row Violation
    1Type org.jfree.chart.labels.CategoryItemLabelGenerator of variable this.itemLabelGenerator does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable this.itemLabelGenerator
    2Expression that.itemLabelGenerator 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.labels.CategoryItemLabelGenerator of variable that.itemLabelGenerator does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable that.itemLabelGenerator
    5Type org.jfree.util.ObjectList of variable this.itemLabelGeneratorList does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable this.baseItemLabelGenerator
    6Expression that.itemLabelGeneratorList 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.util.ObjectList of variable that.itemLabelGeneratorList does not match with type org.jfree.chart.labels.XYItemLabelGenerator of variable that.baseItemLabelGenerator
    9Type org.jfree.chart.labels.CategoryItemLabelGenerator of variable this.baseItemLabelGenerator does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable this.toolTipGenerator
    10Expression that.baseItemLabelGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    11Expression that.toolTipGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    12Type org.jfree.chart.labels.CategoryItemLabelGenerator of variable that.baseItemLabelGenerator does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable that.toolTipGenerator
    13Type org.jfree.chart.labels.CategoryToolTipGenerator of variable this.toolTipGenerator does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable this.baseToolTipGenerator
    14Expression that.toolTipGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    15Expression that.baseToolTipGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    16Type org.jfree.chart.labels.CategoryToolTipGenerator of variable that.toolTipGenerator does not match with type org.jfree.chart.labels.XYToolTipGenerator of variable that.baseToolTipGenerator
    17Type org.jfree.util.ObjectList of variable this.toolTipGeneratorList does not match with type org.jfree.chart.urls.XYURLGenerator of variable this.urlGenerator
    18Expression that.toolTipGeneratorList cannot be parameterized, because it has dependencies to/from statements that will be extracted
    19Expression that.urlGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    20Type org.jfree.util.ObjectList of variable that.toolTipGeneratorList does not match with type org.jfree.chart.urls.XYURLGenerator of variable that.urlGenerator
    21Unmatched statement if(this.defaultEntityRadius != that.defaultEntityRadius) cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    22Unmatched return false;
    23Type org.jfree.chart.labels.CategoryToolTipGenerator of variable this.baseToolTipGenerator does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable this.legendItemLabelGenerator
    24Expression that.baseToolTipGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    25Expression that.legendItemLabelGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    26Type org.jfree.chart.labels.CategoryToolTipGenerator of variable that.baseToolTipGenerator does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable that.legendItemLabelGenerator
    27Type org.jfree.chart.urls.CategoryURLGenerator of variable this.itemURLGenerator does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable this.legendItemToolTipGenerator
    28Expression that.itemURLGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    29Expression that.legendItemToolTipGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    30Type org.jfree.chart.urls.CategoryURLGenerator of variable that.itemURLGenerator does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable that.legendItemToolTipGenerator
    31Type org.jfree.util.ObjectList of variable this.itemURLGeneratorList does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable this.legendItemURLGenerator
    32Expression that.itemURLGeneratorList cannot be parameterized, because it has dependencies to/from statements that will be extracted
    33Expression that.legendItemURLGenerator cannot be parameterized, because it has dependencies to/from statements that will be extracted
    34Type org.jfree.util.ObjectList of variable that.itemURLGeneratorList does not match with type org.jfree.chart.labels.XYSeriesLabelGenerator of variable that.legendItemURLGenerator
    35Expression ObjectUtilities.equal(this.baseItemURLGenerator,that.baseItemURLGenerator) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    36Expression this.backgroundAnnotations.equals(that.backgroundAnnotations) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    37Expression ObjectUtilities.equal(this.legendItemLabelGenerator,that.legendItemLabelGenerator) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    38Expression this.foregroundAnnotations.equals(that.foregroundAnnotations) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    39Expression ObjectUtilities.equal(this.legendItemToolTipGenerator,that.legendItemToolTipGenerator) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    40Expression this.toolTipGeneratorList.equals(that.toolTipGeneratorList) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    41Expression ObjectUtilities.equal(this.legendItemURLGenerator,that.legendItemURLGenerator) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    42Expression this.itemLabelGeneratorList.equals(that.itemLabelGeneratorList) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    43Super method call return super.equals(obj); cannot be extracted from method
    44Super method call return super.equals(obj); cannot be extracted from method
    45Clone fragment #1 returns variables , while Clone fragment #2 returns variables that
    46Not all possible execution flows end in a return statement