JPanel topPanel = new JPanel(); topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS)); GridBagLayout gridBagLayout = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); // topPanel.setLayout( ); JPanel topBorderPanel = new JPanel(); topBorderPanel.setLayout(new BorderLayout());
JPanel topPanel = new JPanel(); topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS)); GridBagLayout gridBagLayout = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); // topPanel.setLayout( ); JPanel topBorderPanel = new JPanel(); topBorderPanel.setLayout(new BorderLayout());
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/plugin/PluginManagerDialog.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/accountlist/AccountListDialog.java
Method name: void initComponents() Method name: void initComponents()
Number of AST nodes: 6 Number of AST nodes: 6
1
JPanel topPanel = new JPanel();
1
JPanel topPanel = new JPanel();
2
		topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));
2
		topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));
3
		GridBagLayout gridBagLayout = new GridBagLayout();
3
		GridBagLayout gridBagLayout = new GridBagLayout();
4
		GridBagConstraints c = new GridBagConstraints();
4
		GridBagConstraints c = new GridBagConstraints();
5
		// topPanel.setLayout( );
5
		// topPanel.setLayout( );
6
		JPanel topBorderPanel = new JPanel();
6
		JPanel topBorderPanel = new JPanel();
7
		topBorderPanel.setLayout(new BorderLayout());
7
		topBorderPanel.setLayout(new BorderLayout());
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 comparisons23
  1. {Non-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 1
    Mapped Statements
    ID Statement ID Statement
    20
    JPanel topPanel = new JPanel();
    16
    JPanel topPanel = new JPanel();
    21
    topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));
    17
    topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));
    22
    GridBagLayout gridBagLayout = new GridBagLayout();
    18
    GridBagLayout gridBagLayout = new GridBagLayout();
    23
    GridBagConstraints c = new GridBagConstraints();
    19
    GridBagConstraints c = new GridBagConstraints();
    24
    JPanel topBorderPanel = new JPanel();
    20
    JPanel topBorderPanel = new JPanel();
    25
    topBorderPanel.setLayout(new BorderLayout());
    21
    topBorderPanel.setLayout(new BorderLayout());
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables topPanel, topBorderPanel, c, gridBagLayout , while Clone fragment #2 returns variables topBorderPanel, topPanel, c, gridBagLayout