table = new JTable(pluginModel = new PluginTableModel()); table.setShowGrid(false); table.setIntercellSpacing(new Dimension(0,0)); table.setRowHeight(table.getRowHeight() + 2); table.setPreferredScrollableViewportSize(new Dimension(500,300)); table.setRequestFocusEnabled(false);
table = new JTable(pluginModel = new PluginTableModel()); table.setShowGrid(false); table.setIntercellSpacing(new Dimension(0,0)); table.setRowHeight(table.getRowHeight() + 2); table.setPreferredScrollableViewportSize(new Dimension(500,200)); table.setRequestFocusEnabled(false);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/pluginmgr/ManagePanel.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/pluginmgr/InstallPanel.java
Method name: void ManagePanel(PluginManager) Method name: void InstallPanel(PluginManager, boolean)
Number of AST nodes: 6 Number of AST nodes: 6
1
table = new JTable(pluginModel = new PluginTableModel());
1
table = new JTable(pluginModel = new PluginTableModel());
2
		table.setShowGrid(false);
2
		table.setShowGrid(false);
3
		table.setIntercellSpacing(new Dimension(0,0));
3
		table.setIntercellSpacing(new Dimension(0,0));
4
		table.setRowHeight(table.getRowHeight() + 2);
4
		table.setRowHeight(table.getRowHeight() + 2);
5
		table.setPreferredScrollableViewportSize(new Dimension(500,300));
5
		table.setPreferredScrollableViewportSize(new Dimension(500,200));
6
		table.setRequestFocusEnabled(false);
6
		table.setRequestFocusEnabled(false);
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 comparisons26
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    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
    7
    table = new JTable(pluginModel = new PluginTableModel());
    7
    table = new JTable(pluginModel = new PluginTableModel());
    6
    table = new JTable(pluginModel = new PluginTableModel());
    Differences
    Expression1Expression2Difference
    org.gjt.sp.jedit.pluginmgr.ManagePanel.PluginTableModelorg.gjt.sp.jedit.pluginmgr.InstallPanel.PluginTableModelSUBCLASS_TYPE_MISMATCH
    org.gjt.sp.jedit.pluginmgr.ManagePanel.PluginTableModelorg.gjt.sp.jedit.pluginmgr.InstallPanel.PluginTableModelSUBCLASS_TYPE_MISMATCH
    6
    table = new JTable(pluginModel = new PluginTableModel());
    8
    table.setShowGrid(false);
    7
    table.setShowGrid(false);
    9
    table.setIntercellSpacing(new Dimension(0, 0));
    8
    table.setIntercellSpacing(new Dimension(0, 0));
    10
    table.setRowHeight(table.getRowHeight() + 2);
    9
    table.setRowHeight(table.getRowHeight() + 2);
    11
    table.setPreferredScrollableViewportSize(new Dimension(500, 300));
    11
    table.setPreferredScrollableViewportSize(new Dimension(500, 300));
    10
    table.setPreferredScrollableViewportSize(new Dimension(500, 200));
    Differences
    Expression1Expression2Difference
    300200LITERAL_VALUE_MISMATCH
    10
    table.setPreferredScrollableViewportSize(new Dimension(500, 200));
    12
    table.setRequestFocusEnabled(false);
    11
    table.setRequestFocusEnabled(false);
    Precondition Violations (0)
    Row Violation