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(colorsTable);
scroller.setPreferredSize(d);
add(BorderLayout.CENTER,scroller);
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/BrowserColorsOptionPane.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(colorsTable);↵
|
3 | scroller.setPreferredSize(d);↵ | | 3 | scroller.setPreferredSize(d);↵
|
4 | add(BorderLayout.CENTER,scroller); | | 4 | add(BorderLayout.CENTER,scroller);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 8 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
39 | d.height = Math.min(d.height, 200); | | 11 | d.height = Math.min(d.height, 200); |
40 | JScrollPane scroller = new JScrollPane(abbrevsTable); | | 12 | JScrollPane scroller = new JScrollPane(colorsTable); |
41 | scroller.setPreferredSize(d); | | 13 | scroller.setPreferredSize(d); |
42 | add(BorderLayout.CENTER, scroller); | | 14 | add(BorderLayout.CENTER, scroller); |
Precondition Violations (0)
Row |
Violation |