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());
super.configure(element); ReportPage page = (ReportPage)element; cssURL.setText(page.getCSS()); footerURL.setText(page.getFooterURL()); headerURL.setText(page.getHeaderURL()); makeIndex.setSelected(page.getIndex()); introduction.setText(page.getIntroduction()); pageTitle.setText(page.getTitle());
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/LineGraphGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/ReportPageGui.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
        LineChart bc = (LineChart)element;
2
        ReportPage page = (ReportPage)element;
3
        xItems.setText(bc.getXAxis());
3
        cssURL.setText(page.getCSS());
4
        yItems.setText(bc.getYAxis());
4
        footerURL.setText(page.getFooterURL());
5
        xAxisLabel.setText(bc.getXLabel());
5
        headerURL.setText(page.getHeaderURL());
6
        yAxisLabel.setText(bc.getYLabel());
6
        makeIndex.setSelected(page.getIndex());
7
        caption.setText(bc.getCaption());
7
        introduction.setText(page.getIntroduction());
8
        urls.setText(bc.getURLs());
8
        pageTitle.setText(page.getTitle());
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 statements7
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    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);
    2
    LineChart bc = (LineChart)element;
    2
    LineChart bc = (LineChart)element;
    2
    ReportPage page = (ReportPage)element;
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.testelement.LineChartorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    bcpageVARIABLE_NAME_MISMATCH
    org.apache.jmeter.testelement.LineChartorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    org.apache.jmeter.testelement.LineChartorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    2
    ReportPage page = (ReportPage)element;
    3
    xItems.setText(bc.getXAxis());
    3
    xItems.setText(bc.getXAxis());
    3
    cssURL.setText(page.getCSS());
    Differences
    Expression1Expression2Difference
    getXAxisgetCSSMETHOD_INVOCATION_NAME_MISMATCH
    bcpageVARIABLE_NAME_MISMATCH
    org.apache.jmeter.testelement.LineChartorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    xItemscssURLVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledChoiceorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression bc.getXAxis() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression page.getCSS() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression xItems cannot be unified with expression cssURL , because common superclass javax.swing.JPanel does not declare member(s) public void setText(java.lang.String)
    3
    cssURL.setText(page.getCSS());
    4
    yItems.setText(bc.getYAxis());
    4
    yItems.setText(bc.getYAxis());
    4
    footerURL.setText(page.getFooterURL());
    Differences
    Expression1Expression2Difference
    getYAxisgetFooterURLMETHOD_INVOCATION_NAME_MISMATCH
    bcpageVARIABLE_NAME_MISMATCH
    org.apache.jmeter.testelement.LineChartorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    yItemsfooterURLVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledChoiceorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression bc.getYAxis() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression page.getFooterURL() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression yItems cannot be unified with expression footerURL , because common superclass javax.swing.JPanel does not declare member(s) public void setText(java.lang.String)
    4
    footerURL.setText(page.getFooterURL());
    5
    xAxisLabel.setText(bc.getXLabel());
    5
    xAxisLabel.setText(bc.getXLabel());
    5
    headerURL.setText(page.getHeaderURL());
    Differences
    Expression1Expression2Difference
    getXLabelgetHeaderURLMETHOD_INVOCATION_NAME_MISMATCH
    bcpageVARIABLE_NAME_MISMATCH
    org.apache.jmeter.testelement.LineChartorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    xAxisLabelheaderURLVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledChoiceorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression bc.getXLabel() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression page.getHeaderURL() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression xAxisLabel cannot be unified with expression headerURL , because common superclass javax.swing.JPanel does not declare member(s) public void setText(java.lang.String)
    5
    headerURL.setText(page.getHeaderURL());
                                                                                        
    6
    makeIndex.setSelected(page.getIndex());
    6
    yAxisLabel.setText(bc.getYLabel());
    6
    yAxisLabel.setText(bc.getYLabel());
    7
    introduction.setText(page.getIntroduction());
    Differences
    Expression1Expression2Difference
    getYLabelgetIntroductionMETHOD_INVOCATION_NAME_MISMATCH
    bcpageVARIABLE_NAME_MISMATCH
    org.apache.jmeter.testelement.LineChartorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    yAxisLabelintroductionVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldorg.apache.jorphan.gui.JLabeledTextAreaSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression bc.getYLabel() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression page.getIntroduction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression yAxisLabel cannot be unified with expression introduction , because common superclass javax.swing.JPanel does not declare member(s) public void setText(java.lang.String)
    7
    introduction.setText(page.getIntroduction());
    7
    caption.setText(bc.getCaption());
                                                                            
    8
    urls.setText(bc.getURLs());
    8
    urls.setText(bc.getURLs());
    8
    pageTitle.setText(page.getTitle());
    Differences
    Expression1Expression2Difference
    getURLsgetTitleMETHOD_INVOCATION_NAME_MISMATCH
    bcpageVARIABLE_NAME_MISMATCH
    org.apache.jmeter.testelement.LineChartorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    urlspageTitleVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression bc.getURLs() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression page.getTitle() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8
    pageTitle.setText(page.getTitle());
    Precondition Violations (15)
    Row Violation
    1Expression bc.getXAxis() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression page.getCSS() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression xItems cannot be unified with expression cssURL , because common superclass javax.swing.JPanel does not declare member(s) public void setText(java.lang.String)
    4Expression bc.getYAxis() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression page.getFooterURL() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression yItems cannot be unified with expression footerURL , because common superclass javax.swing.JPanel does not declare member(s) public void setText(java.lang.String)
    7Expression bc.getXLabel() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression page.getHeaderURL() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression xAxisLabel cannot be unified with expression headerURL , because common superclass javax.swing.JPanel does not declare member(s) public void setText(java.lang.String)
    10Expression bc.getYLabel() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    11Expression page.getIntroduction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    12Expression yAxisLabel cannot be unified with expression introduction , because common superclass javax.swing.JPanel does not declare member(s) public void setText(java.lang.String)
    13Expression bc.getURLs() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    14Expression page.getTitle() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    15Clone fragment #1 returns variable bc with type org.apache.jmeter.testelement.LineChart , while Clone fragment #2 returns variable page with type org.apache.jmeter.testelement.ReportPage