JPanel labelPanel = new JPanel(new FlowLayout(FlowLayout.CENTER)); labelPanel.add(tableLabel); return labelPanel;
Container panel = super.makeTitlePanel(); // Note: the file panel already includes the error logging checkbox, // so we don't have to add it explicitly. panel.add(getFilePanel()); return panel;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/gui/HTTPFileArgsPanel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/gui/AbstractVisualizer.java
Method name: Component makeLabelPanel() Method name: Container makeTitlePanel()
Number of AST nodes: 3 Number of AST nodes: 3
1
JPanel labelPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
2
        labelP
1
Container panel = super.makeTitlePanel();
2
		// Note: the file panel already includes the error logging checkbox,
3
		// so we don't have to add it explicitly.
3
anel.add(tableLabel);
4
		panel.add(
4
        
5
getFilePanel());
5
return labelPanel;
6
		return panel;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
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 comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    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
    JPanel labelPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
    1
    JPanel labelPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
    1
    Container panel = super.makeTitlePanel();
    Differences
    Expression1Expression2Difference
    javax.swing.JPaneljava.awt.ContainerSUBCLASS_TYPE_MISMATCH
    labelPanelpanelVARIABLE_NAME_MISMATCH
    javax.swing.JPaneljava.awt.ContainerSUBCLASS_TYPE_MISMATCH
    new JPanel(new FlowLayout(FlowLayout.CENTER))super.makeTitlePanel()TYPE_COMPATIBLE_REPLACEMENT
    1
    Container panel = super.makeTitlePanel();
    2
    labelPanel.add(tableLabel);
    2
    labelPanel.add(tableLabel);
    2
    panel.add(getFilePanel());
    Differences
    Expression1Expression2Difference
    tableLabelgetFilePanel()TYPE_COMPATIBLE_REPLACEMENT
    labelPanelpanelVARIABLE_NAME_MISMATCH
    javax.swing.JPaneljava.awt.ContainerSUBCLASS_TYPE_MISMATCH
    2
    panel.add(getFilePanel());
    3
    return labelPanel;
    3
    return labelPanel;
    3
    return panel;
    Differences
    Expression1Expression2Difference
    labelPanelpanelVARIABLE_NAME_MISMATCH
    javax.swing.JPaneljava.awt.ContainerSUBCLASS_TYPE_MISMATCH
    3
    return panel;
    Precondition Violations (0)
    Row Violation