GridBagConstraints cons = new GridBagConstraints();
cons.gridy = y++;
cons.gridheight = 1;
cons.gridwidth = cons.REMAINDER;
cons.fill = GridBagConstraints.BOTH;
cons.anchor = GridBagConstraints.WEST;
cons.weightx = 1.0f;
GridBagConstraints cons = new GridBagConstraints();
cons.gridy = y++;
cons.gridheight = 1;
cons.gridwidth = cons.REMAINDER;
cons.fill = GridBagConstraints.BOTH;
cons.anchor = GridBagConstraints.WEST;
cons.weightx = 1.0f;
Clone fragments detected by clone detection tool
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()
|
|
Method name: void addSeparator(String)
|
Number of AST nodes: 7
|
|
Number of AST nodes: 7
|
|
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.BOTH;↵
|
6 | cons.anchor = GridBagConstraints.WEST;↵ | | 6 | cons.anchor = GridBagConstraints.WEST;↵
|
7 | cons.weightx = 1.0f; | | 7 | cons.weightx = 1.0f;
|
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 declared in the same class |
Number of node comparisons | 49 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 7 |
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 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
3 | GridBagConstraints cons = new GridBagConstraints(); | | 17 | GridBagConstraints cons = new GridBagConstraints(); |
4 | cons.gridy = y++; | | 18 | cons.gridy = y++; |
5 | cons.gridheight = 1; | | 19 | cons.gridheight = 1; |
6 | cons.gridwidth = cons.REMAINDER; | | 20 | cons.gridwidth = cons.REMAINDER; |
7 | cons.fill = GridBagConstraints.BOTH; | | 21 | cons.fill = GridBagConstraints.BOTH; |
8 | cons.anchor = GridBagConstraints.WEST; | | 22 | cons.anchor = GridBagConstraints.WEST; |
9 | cons.weightx = 1.0f; | | 23 | cons.weightx = 1.0f; |
Precondition Violations (0)
Row |
Violation |