initializeTableModel(); table = new JTable(tableModel); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); return makeScrollPane(table);
tableModel = new PowerTableModel(new String[] { COLUMN_NAMES_0, COLUMN_NAMES_1 }, new Class[] { String.class, String.class }); table = new JTable(tableModel); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); return makeScrollPane(table);
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/config/gui/SimpleConfigGui.java
Method name: Component makeMainPanel() Method name: Component createTablePanel()
Number of AST nodes: 4 Number of AST nodes: 4
1
initializeTableModel();
2
        
1
tableModel = new PowerTableModel(new String[] { COLUMN_NAMES_0, COLUMN_NAMES_1 }, new Class[] { String.class,
2
				String.class });
3
table = new JTable(tableModel);
3
		table = new JTable(tableModel);
4
        table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
4
		table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
5
        return makeScrollPane(table);
5
		return makeScrollPane(table);
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 comparisons12
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    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
    tableModel = new PowerTableModel(new String[] {COLUMN_NAMES_0, COLUMN_NAMES_1}, new Class[] {String.class, String.class});
    1
    initializeTableModel();
    1
    initializeTableModel();
    3
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    Differences
    Expression1Expression2Difference
    initializeTableModelsetSelectionModeMETHOD_INVOCATION_NAME_MISMATCH
    initializeTableModel()table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION)ARGUMENT_NUMBER_MISMATCH
    tableMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression initializeTableModel() is a void method call, and thus it cannot be parameterized
    Expression table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION) is a void method call, and thus it cannot be parameterized
    Expression table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression initializeTableModel() is a void method call, and thus it cannot be parameterized
    Expression table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION) is a void method call, and thus it cannot be parameterized
    3
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    2
    table = new JTable(tableModel);
    2
    table = new JTable(tableModel);
    2
    table = new JTable(tableModel);
    Differences
    Expression1Expression2Difference
    org.apache.jorphan.gui.ObjectTableModelorg.apache.jmeter.gui.util.PowerTableModelSUBCLASS_TYPE_MISMATCH
    2
    table = new JTable(tableModel);
    3
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
                                                                                                                                  
    4
    return makeScrollPane(table);
    4
    return makeScrollPane(table);
    Precondition Violations (6)
    Row Violation
    1Expression table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression initializeTableModel() is a void method call, and thus it cannot be parameterized
    3Expression table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION) is a void method call, and thus it cannot be parameterized
    4Expression table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression initializeTableModel() is a void method call, and thus it cannot be parameterized
    6Expression table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION) is a void method call, and thus it cannot be parameterized