super.add(subplot, weight); ValueAxis l_range = super.getRangeAxis(); subplot.setRangeAxis(0, l_range, false); super.setRangeAxis(l_range); if (null == l_range) { return; } l_range.configure();
super.add(subplot, weight); ValueAxis l_range = super.getRangeAxis(); subplot.setRangeAxis(0, l_range, false); super.setRangeAxis(l_range); if (null == l_range) { return; } l_range.configure();
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/experimental/org/jfree/experimental/chart/plot/CombinedCategoryPlot.java File path: /jfreechart-1.0.10/experimental/org/jfree/experimental/chart/plot/CombinedXYPlot.java
Method name: void add(CategoryPlot, int) Method name: void add(XYPlot, int)
Number of AST nodes: 7 Number of AST nodes: 7
1
super.add(subplot, weight);
1
super.add(subplot, weight);
2
        ValueAxis l_range = super.getRangeAxis();
2
        ValueAxis l_range = super.getRangeAxis();
3
        subplot.setRangeAxis(0, l_range, false);
3
        subplot.setRangeAxis(0, l_range, false);
4
        super.setRangeAxis(l_range);
4
        super.setRangeAxis(l_range);
5
        if (null == l_range) {
5
        if (null == l_range) {
6
            return;
6
            return;
7
        }
7
        }
8
        l_range.configure();
8
        l_range.configure();
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)0.1
Clones locationClones are in different classes having the same super class
Number of node comparisons17
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)3.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super.add(subplot, weight);
    1
    super.add(subplot, weight);
    1
    super.add(subplot, weight);
    Differences
    Expression1Expression2Difference
    org.jfree.chart.plot.CategoryPlotorg.jfree.chart.plot.XYPlotSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Super method call super.add(subplot,weight); cannot be extracted from method
    Super method call super.add(subplot,weight); cannot be extracted from method
    1
    super.add(subplot, weight);
    2
    ValueAxis l_range = super.getRangeAxis();
    2
    ValueAxis l_range = super.getRangeAxis();
    2
    ValueAxis l_range = super.getRangeAxis();
    Preondition Violations
    Super method call ValueAxis l_range=super.getRangeAxis(); cannot be extracted from method
    Super method call ValueAxis l_range=super.getRangeAxis(); cannot be extracted from method
    2
    ValueAxis l_range = super.getRangeAxis();
    3
    subplot.setRangeAxis(0, l_range, false);
    3
    subplot.setRangeAxis(0, l_range, false);
    3
    subplot.setRangeAxis(0, l_range, false);
    Differences
    Expression1Expression2Difference
    org.jfree.chart.plot.CategoryPlotorg.jfree.chart.plot.XYPlotSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression subplot cannot be unified with expression subplot , because common superclass org.jfree.chart.plot.Plot does not declare member(s) public void setRangeAxis(int, org.jfree.chart.axis.ValueAxis, boolean)
    3
    subplot.setRangeAxis(0, l_range, false);
    4
    super.setRangeAxis(l_range);
    4
    super.setRangeAxis(l_range);
    4
    super.setRangeAxis(l_range);
    Preondition Violations
    Super method call super.setRangeAxis(l_range); cannot be extracted from method
    Super method call super.setRangeAxis(l_range); cannot be extracted from method
    4
    super.setRangeAxis(l_range);
    5
    if (null == l_range)
    5
    if (null == l_range)
    6
    return;
    6
    return;
    7
    l_range.configure();
    7
    l_range.configure();
    Precondition Violations (7)
    Row Violation
    1Super method call super.add(subplot,weight); cannot be extracted from method
    2Super method call super.add(subplot,weight); cannot be extracted from method
    3Super method call ValueAxis l_range=super.getRangeAxis(); cannot be extracted from method
    4Super method call ValueAxis l_range=super.getRangeAxis(); cannot be extracted from method
    5Expression subplot cannot be unified with expression subplot , because common superclass org.jfree.chart.plot.Plot does not declare member(s) public void setRangeAxis(int, org.jfree.chart.axis.ValueAxis, boolean)
    6Super method call super.setRangeAxis(l_range); cannot be extracted from method
    7Super method call super.setRangeAxis(l_range); cannot be extracted from method