CloneSet 181

# CloneSet181

Previous CloneSet | Next CloneSet | Back to Main Report

Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length]
--- | --- | --- | --- | ---
34 | 2 | 3 | 0.961 | statement_sequence[24]

Clone Abstraction | Parameter Bindings

Clone Instance (Click to see clone) | Line Count | Source Line | Source File
--- | --- | --- | ---

1

34

219

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/plot/junit/CategoryPlotTests.java

2

34

202

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/plot/junit/XYPlotTests.java

Next
Last

Clone Instance
1

Line Count
34

Source Line
219

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/plot/junit/CategoryPlotTests.java

    // rangeAxisLocations...
    plot1.setRangeAxisLocation(11, AxisLocation.TOP_OR_RIGHT);
    assertFalse(plot1.equals(plot2));
    plot2.setRangeAxisLocation(11, AxisLocation.TOP_OR_RIGHT);
    assertTrue(plot1.equals(plot2));
    // datasetToDomainAxisMap...
    plot1.mapDatasetToDomainAxis(11, 11);
    assertFalse(plot1.equals(plot2));
    plot2.mapDatasetToDomainAxis(11, 11);
    assertTrue(plot1.equals(plot2));
    // datasetToRangeAxisMap...
    plot1.mapDatasetToRangeAxis(11, 11);
    assertFalse(plot1.equals(plot2));
    plot2.mapDatasetToRangeAxis(11, 11);
    assertTrue(plot1.equals(plot2));
    // renderer - no longer a separate field but test anyway...
    plot1.setRenderer(new AreaRenderer());
    assertFalse(plot1.equals(plot2));
    plot2.setRenderer(new AreaRenderer());
    assertTrue(plot1.equals(plot2));
    // renderers...
    plot1.setRenderer(11, new AreaRenderer());
    assertFalse(plot1.equals(plot2));
    plot2.setRenderer(11, new AreaRenderer());
    assertTrue(plot1.equals(plot2));
    // rendering order...
    plot1.setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);
    assertFalse(plot1.equals(plot2));
    plot2.setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);
    assertTrue(plot1.equals(plot2));

First
Previous

Clone Instance
2

Line Count
34

Source Line
202

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/plot/junit/XYPlotTests.java

    // secondary RangeAxisLocations...
    plot1.setRangeAxisLocation(11, AxisLocation.TOP_OR_RIGHT);
    assertFalse(plot1.equals(plot2));
    plot2.setRangeAxisLocation(11, AxisLocation.TOP_OR_RIGHT);
    assertTrue(plot1.equals(plot2));
    // secondary DatasetDomainAxisMap...
    plot1.mapDatasetToDomainAxis(11, 11);
    assertFalse(plot1.equals(plot2));
    plot2.mapDatasetToDomainAxis(11, 11);
    assertTrue(plot1.equals(plot2));
    // secondaryDatasetRangeAxisMap...
    plot1.mapDatasetToRangeAxis(11, 11);
    assertFalse(plot1.equals(plot2));
    plot2.mapDatasetToRangeAxis(11, 11);
    assertTrue(plot1.equals(plot2));
    // renderer
    plot1.setRenderer(new DefaultXYItemRenderer());
    assertFalse(plot1.equals(plot2));
    plot2.setRenderer(new DefaultXYItemRenderer());
    assertTrue(plot1.equals(plot2));
    // secondary renderers
    plot1.setRenderer(11, new DefaultXYItemRenderer());
    assertFalse(plot1.equals(plot2));
    plot2.setRenderer(11, new DefaultXYItemRenderer());
    assertTrue(plot1.equals(plot2));
    // domainGridlinesVisible
    plot1.setDomainGridlinesVisible(false);
    assertFalse(plot1.equals(plot2));
    plot2.setDomainGridlinesVisible(false);
    assertTrue(plot1.equals(plot2));

Clone Abstraction | Parameter Count: 3 | Parameter Bindings

    // secondary RangeAxisLocations...
    // rangeAxisLocations...
    plot1.setRangeAxisLocation(11, AxisLocation.TOP_OR_RIGHT);
    assertFalse(plot1.equals(plot2));
    plot2.setRangeAxisLocation(11, AxisLocation.TOP_OR_RIGHT);
    assertTrue(plot1.equals(plot2));
    // secondary DatasetDomainAxisMap...
    // datasetToDomainAxisMap...
    plot1.mapDatasetToDomainAxis(11, 11);
    assertFalse(plot1.equals(plot2));
    plot2.mapDatasetToDomainAxis(11, 11);
    assertTrue(plot1.equals(plot2));
    // secondaryDatasetRangeAxisMap...
    // datasetToRangeAxisMap...
    plot1.mapDatasetToRangeAxis(11, 11);
    assertFalse(plot1.equals(plot2));
    plot2.mapDatasetToRangeAxis(11, 11);
    assertTrue(plot1.equals(plot2));
    // renderer
    // renderer - no longer a separate field but test anyway...
    plot1.setRenderer(new [[#variable1aade340]]());
    assertFalse(plot1.equals(plot2));
    plot2.setRenderer(new [[#variable1aade340]]());
    assertTrue(plot1.equals(plot2));
    // secondary renderers
    // renderers...
    plot1.setRenderer(11, new [[#variable1aade340]]());
    assertFalse(plot1.equals(plot2));
    plot2.setRenderer(11, new [[#variable1aade340]]());
    assertTrue(plot1.equals(plot2));
    // domainGridlinesVisible
    // rendering order...
    plot1. [[#variable1aae4880]]( [[#variable1aae5fa0]]);
    assertFalse(plot1.equals(plot2));
    plot2. [[#variable1aae4880]]( [[#variable1aae5fa0]]);
    assertTrue(plot1.equals(plot2));

CloneAbstraction

Parameter Bindings
Parameter Index | Clone Instance | Parameter Name | Value
--- | --- | --- | ---

1

1

`[[#1aade340]]`

    AreaRenderer

1

2

`[[#1aade340]]`

    DefaultXYItemRenderer

2

1

`[[#1aae4880]]`

    setDatasetRenderingOrder

2

2

`[[#1aae4880]]`

    setDomainGridlinesVisible

3

1

`[[#1aae5fa0]]`

    DatasetRenderingOrder.FORWARD

3

2

`[[#1aae5fa0]]`

    false