JPanel panel = new JPanel(new BorderLayout(10, 0)); panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); panel.add(createLogList(), BorderLayout.CENTER); panel.add(createLogListActionsPanel(), BorderLayout.EAST); return panel;
JPanel panel = new JPanel(new BorderLayout(10, 0)); panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); panel.add(createScriptList(), BorderLayout.CENTER); panel.add(createScriptActionsPanel(), BorderLayout.EAST); return panel;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/scripting/ScriptManager.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/scripting/ScriptManager.java
Method name: JPanel createLogPanel() Method name: JPanel createScriptsPanel()
Number of AST nodes: 5 Number of AST nodes: 5
1
JPanel panel = new JPanel(new BorderLayout(10, 0));
1
JPanel panel = new JPanel(new BorderLayout(10, 0));
2
        panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
2
        panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
3
        panel.add(createLogList(), BorderLayout.CENTER);
3
        panel.add(createScriptList(), BorderLayout.CENTER);
4
        panel.add(createLogListActionsPanel(), BorderLayout.EAST);
4
        panel.add(createScriptActionsPanel(), BorderLayout.EAST);
5
        return panel;
5
        return panel;
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 declared in the same class
Number of node comparisons17
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    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 panel = new JPanel(new BorderLayout(10, 0));
    1
    JPanel panel = new JPanel(new BorderLayout(10, 0));
    2
    panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    2
    panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    3
    panel.add(createLogList(), BorderLayout.CENTER);
    3
    panel.add(createLogList(), BorderLayout.CENTER);
    3
    panel.add(createScriptList(), BorderLayout.CENTER);
    Differences
    Expression1Expression2Difference
    createLogListcreateScriptListMETHOD_INVOCATION_NAME_MISMATCH
    3
    panel.add(createScriptList(), BorderLayout.CENTER);
    4
    panel.add(createLogListActionsPanel(), BorderLayout.EAST);
    4
    panel.add(createLogListActionsPanel(), BorderLayout.EAST);
    4
    panel.add(createScriptActionsPanel(), BorderLayout.EAST);
    Differences
    Expression1Expression2Difference
    createLogListActionsPanelcreateScriptActionsPanelMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression createLogListActionsPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method createLogListActionsPanel
    Expression createScriptActionsPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method createScriptActionsPanel
    4
    panel.add(createScriptActionsPanel(), BorderLayout.EAST);
    5
    return panel;
    5
    return panel;
    Precondition Violations (2)
    Row Violation
    1Expression createLogListActionsPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression createScriptActionsPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted