super.configure(element); BarChart bc = (BarChart)element; xItems.setText(bc.getXAxis()); yItems.setText(bc.getYAxis()); xAxisLabel.setText(bc.getXLabel()); yAxisLabel.setText(bc.getYLabel()); caption.setText(bc.getCaption()); url.setText(bc.getURL());
super.configure(element); LineChart bc = (LineChart)element; xItems.setText(bc.getXAxis()); yItems.setText(bc.getYAxis()); xAxisLabel.setText(bc.getXLabel()); yAxisLabel.setText(bc.getYLabel()); caption.setText(bc.getCaption()); urls.setText(bc.getURLs());
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/BarChartGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/LineGraphGui.java
Method name: void configure(TestElement) Method name: void configure(TestElement)
Number of AST nodes: 8 Number of AST nodes: 8
1
super.configure(element);
1
super.configure(element);
2
        BarChart bc = (BarChart)element;
2
        LineChart bc = (LineChart)element;
3
        xItems.setText(bc.getXAxis());
3
        xItems.setText(bc.getXAxis());
4
        yItems.setText(bc.getYAxis());
4
        yItems.setText(bc.getYAxis());
5
        xAxisLabel.setText(bc.getXLabel());
5
        xAxisLabel.setText(bc.getXLabel());
6
        yAxisLabel.setText(bc.getYLabel());
6
        yAxisLabel.setText(bc.getYLabel());
7
        caption.setText(bc.getCaption());
7
        caption.setText(bc.getCaption());
8
        url.setText(bc.getURL());
8
        urls.setText(bc.getURLs());
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons64
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements8
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super.configure(element);
    1
    super.configure(element);
    1
    super.configure(element);
    Preondition Violations
    Super method call super.configure(element); cannot be extracted from method
    Super method call super.configure(element); cannot be extracted from method
    1
    super.configure(element);
    2
    BarChart bc = (BarChart)element;
    2
    BarChart bc = (BarChart)element;
    2
    LineChart bc = (LineChart)element;
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.testelement.BarChartorg.apache.jmeter.testelement.LineChartSUBCLASS_TYPE_MISMATCH
    org.apache.jmeter.testelement.BarChartorg.apache.jmeter.testelement.LineChartSUBCLASS_TYPE_MISMATCH
    org.apache.jmeter.testelement.BarChartorg.apache.jmeter.testelement.LineChartSUBCLASS_TYPE_MISMATCH
    2
    LineChart bc = (LineChart)element;
    3
    xItems.setText(bc.getXAxis());
    3
    xItems.setText(bc.getXAxis());
    3
    xItems.setText(bc.getXAxis());
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.testelement.BarChartorg.apache.jmeter.testelement.LineChartSUBCLASS_TYPE_MISMATCH
    3
    xItems.setText(bc.getXAxis());
    4
    yItems.setText(bc.getYAxis());
    4
    yItems.setText(bc.getYAxis());
    4
    yItems.setText(bc.getYAxis());
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.testelement.BarChartorg.apache.jmeter.testelement.LineChartSUBCLASS_TYPE_MISMATCH
    4
    yItems.setText(bc.getYAxis());
    5
    xAxisLabel.setText(bc.getXLabel());
    5
    xAxisLabel.setText(bc.getXLabel());
    5
    xAxisLabel.setText(bc.getXLabel());
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.testelement.BarChartorg.apache.jmeter.testelement.LineChartSUBCLASS_TYPE_MISMATCH
    5
    xAxisLabel.setText(bc.getXLabel());
    6
    yAxisLabel.setText(bc.getYLabel());
    6
    yAxisLabel.setText(bc.getYLabel());
    6
    yAxisLabel.setText(bc.getYLabel());
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.testelement.BarChartorg.apache.jmeter.testelement.LineChartSUBCLASS_TYPE_MISMATCH
    6
    yAxisLabel.setText(bc.getYLabel());
    7
    caption.setText(bc.getCaption());
    7
    caption.setText(bc.getCaption());
    7
    caption.setText(bc.getCaption());
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.testelement.BarChartorg.apache.jmeter.testelement.LineChartSUBCLASS_TYPE_MISMATCH
    7
    caption.setText(bc.getCaption());
    8
    url.setText(bc.getURL());
    8
    url.setText(bc.getURL());
    8
    urls.setText(bc.getURLs());
    Differences
    Expression1Expression2Difference
    getURLgetURLsMETHOD_INVOCATION_NAME_MISMATCH
    org.apache.jmeter.testelement.BarChartorg.apache.jmeter.testelement.LineChartSUBCLASS_TYPE_MISMATCH
    urlurlsVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression bc.getURL() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression bc.getURLs() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression bc cannot be unified with expression bc , because common superclass org.apache.jmeter.testelement.AbstractChart does not declare member(s) public java.lang.String getURL() , public java.lang.String getURLs()
    8
    urls.setText(bc.getURLs());
    Precondition Violations (5)
    Row Violation
    1Super method call super.configure(element); cannot be extracted from method
    2Super method call super.configure(element); cannot be extracted from method
    3Expression bc.getURL() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression bc.getURLs() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression bc cannot be unified with expression bc , because common superclass org.apache.jmeter.testelement.AbstractChart does not declare member(s) public java.lang.String getURL() , public java.lang.String getURLs()