List item = field.getComponentList();
panel.add((Component) item.get(0), gbc.clone());
gbc.gridx++;
gbc.weightx = 1;
gbc.fill=GridBagConstraints.HORIZONTAL;
panel.add((Component) item.get(1), gbc.clone());
List item = field.getComponentList();
panel.add((Component) item.get(0), gbc.clone());
gbc.gridx++;
gbc.weightx = 1;
gbc.fill=GridBagConstraints.HORIZONTAL;
panel.add((Component) item.get(1), gbc.clone());
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/gui/RegexExtractorGui.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/gui/XPathExtractorGui.java
|
Method name: void addField(JPanel, JLabeledTextField, GridBagConstraints)
|
|
Method name: void addField(JPanel, JLabeledTextField, GridBagConstraints)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | List item = field.getComponentList();↵ | | 1 | List item = field.getComponentList();↵
|
2 | panel.add((Component) item.get(0), gbc.clone());↵ | | 2 | panel.add((Component) item.get(0), gbc.clone());↵
|
3 | gbc.gridx++;↵ | | 3 | gbc.gridx++;↵
|
4 | gbc.weightx = 1;↵ | | 4 | gbc.weightx = 1;↵
|
5 | gbc.fill=GridBagConstraints.HORIZONTAL;↵ | | 5 | gbc.fill=GridBagConstraints.HORIZONTAL;↵
|
6 | panel.add((Component) item.get(1), gbc.clone()); | | 6 | panel.add((Component) item.get(1), gbc.clone());
|
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 | 36 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 6 |
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 |
1 | List item = field.getComponentList(); | | 1 | List item = field.getComponentList(); |
2 | panel.add((Component)item.get(0), gbc.clone()); | | 2 | panel.add((Component)item.get(0), gbc.clone()); |
3 | gbc.gridx++; | | 3 | gbc.gridx++; |
4 | gbc.weightx = 1; | | 4 | gbc.weightx = 1; |
5 | gbc.fill = GridBagConstraints.HORIZONTAL; | | 5 | gbc.fill = GridBagConstraints.HORIZONTAL; |
6 | panel.add((Component)item.get(1), gbc.clone()); | | 6 | panel.add((Component)item.get(1), gbc.clone()); |
Precondition Violations (0)
Row |
Violation |