d.height = Math.min(d.height,200); JScrollPane scroller = new JScrollPane(abbrevsTable); scroller.setPreferredSize(d); add(BorderLayout.CENTER,scroller);
d.height = Math.min(d.height,200); JScrollPane scroller = new JScrollPane(keyTable); scroller.setPreferredSize(d); add(BorderLayout.NORTH,north);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/AbbrevsOptionPane.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ShortcutsOptionPane.java
Method name: void _init() Method name: void _init()
Number of AST nodes: 4 Number of AST nodes: 4
1
d.height = Math.min(d.height,200);
1
d.height = Math.min(d.height,200);
2
		JScrollPane scroller = new JScrollPane(abbrevsTable);
2
		JScrollPane scroller = new JScrollPane(keyTable);
3
		scroller.setPreferredSize(d);
3
		scroller.setPreferredSize(d);
4
		add(BorderLayout.CENTER,scroller);
4
		add(BorderLayout.NORTH,north);
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 comparisons8
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    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
    39
    d.height = Math.min(d.height, 200);
    15
    d.height = Math.min(d.height, 200);
    40
    JScrollPane scroller = new JScrollPane(abbrevsTable);
    40
    JScrollPane scroller = new JScrollPane(abbrevsTable);
    16
    JScrollPane scroller = new JScrollPane(keyTable);
    Differences
    Expression1Expression2Difference
    abbrevsTablekeyTableVARIABLE_NAME_MISMATCH
    16
    JScrollPane scroller = new JScrollPane(keyTable);
    41
    scroller.setPreferredSize(d);
    17
    scroller.setPreferredSize(d);
    42
    add(BorderLayout.CENTER, scroller);
    42
    add(BorderLayout.CENTER, scroller);
    18
    add(BorderLayout.NORTH, north);
    Differences
    Expression1Expression2Difference
    CENTERNORTHVARIABLE_NAME_MISMATCH
    scrollernorthVARIABLE_NAME_MISMATCH
    javax.swing.JScrollPanejavax.swing.BoxSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression scroller cannot be parameterized, because it has dependencies to/from statements that will be extracted
    18
    add(BorderLayout.NORTH, north);
    Precondition Violations (2)
    Row Violation
    1Expression scroller cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Clone fragment #1 returns variables , while Clone fragment #2 returns variables scroller