File path: /jEdit-4.2/src/org/gjt/sp/jedit/AbstractOptionPane.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/AbstractOptionPane.java | |||
Method name: void addSeparator(String)
|
Method name: void addComponent(Component)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | GridBagConstraints cons = new GridBagConstraints();↵ | 1 | GridBagConstraints cons = new GridBagConstraints();↵ | |
2 | cons.gridy = y++;↵ | 2 | cons.gridy = y++;↵ | |
3 | cons.gridheight = 1;↵ | 3 | cons.gridheight = 1;↵ | |
4 | cons.gridwidth = cons.REMAINDER;↵ | 4 | cons.gridwidth = cons.REMAINDER;↵ | |
5 | cons.fill = GridBagConstraints.BOTH;↵ | 5 | cons.fill = GridBagConstraints.NONE;↵ | |
6 | cons.anchor = GridBagConstraints.WEST;↵ | 6 | cons.anchor = GridBagConstraints.WEST;↵ | |
7 | cons.weightx = 1.0f;↵ | 7 | cons.weightx = 1.0f;↵ | |
8 | cons.insets = new Insets(1,0,1,0);↵ | 8 | cons.insets = new Insets(1,0,1,0);↵ | |
9 | gridBag.setConstraints(box,cons);↵ | 9 | gridBag.setConstraints(comp,cons);↵ | |
10 | add(box); | 10 | add(comp); | |
See real code fragment | See real code fragment |
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 declared in the same class |
Number of node comparisons | 68 |
Number of mapped statements | 10 |
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 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17 | GridBagConstraints cons = new GridBagConstraints(); | 1 | GridBagConstraints cons = new GridBagConstraints(); | ||||||||||||||
18 | cons.gridy = y++; | 2 | cons.gridy = y++; | ||||||||||||||
19 | cons.gridheight = 1; | 3 | cons.gridheight = 1; | ||||||||||||||
20 | cons.gridwidth = cons.REMAINDER; | 4 | cons.gridwidth = cons.REMAINDER; | ||||||||||||||
21 | cons.fill = GridBagConstraints.BOTH; |
| 5 | cons.fill = GridBagConstraints.NONE; | |||||||||||||
22 | cons.anchor = GridBagConstraints.WEST; | 6 | cons.anchor = GridBagConstraints.WEST; | ||||||||||||||
23 | cons.weightx = 1.0f; | 7 | cons.weightx = 1.0f; | ||||||||||||||
24 | cons.insets = new Insets(1, 0, 1, 0); | 8 | cons.insets = new Insets(1, 0, 1, 0); | ||||||||||||||
25 | gridBag.setConstraints(box, cons); |
| 9 | gridBag.setConstraints(comp, cons); | |||||||||||||
26 | add(box); |
| 10 | add(comp); |
Row | Violation |
---|