for (int j = 0; j < components.size(); j++) {
Element comp = (Element) components.get(j);
String nm=comp.getAttributeValue("name");
if (!nm.equals("SSL Manager")){// Not a true GUI component
guiTitles.put(nm.replace(' ','_'), Boolean.FALSE);
}
}
List components = ((Element) sections.get(i)).getChildren("component");
for (int j = 0; j < components.size(); j++) {
Element comp = (Element) components.get(j);
funcTitles.put(comp.getAttributeValue("name"), Boolean.FALSE);
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/junit/JMeterTest.java
|
|
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/junit/JMeterTest.java
|
Method name: void createTitleSet()
|
|
Method name: void createFunctionSet()
|
Number of AST nodes: 5
|
|
Number of AST nodes: 4
|
|
| | | 1 | List components = ((Element) sections.get(i)).getChildren("component");↵
|
1 | for (int j = 0; j < components.size(); j++) {↵ | | 2 | for (int j = 0; j < components.size(); j++) {↵
|
2 | Element comp = (Element) components.get(j);↵ | | 3 | Element comp = (Element) components.get(j);↵
|
3 | String nm=comp.getAttributeValue("name");↵ | | 4 | funcTitles.put(comp.getAttributeValue("name")↵
|
4 | if (!nm.equals("SSL Manager")){// Not a true GUI component↵ | | |
|
5 | guiTitles.put(nm.replace(' ','_'), Boolean.FALSE);↵ | | |
|
6 | }↵ | | 5 | , Boolean.FALSE);↵
|
7 | } | | 6 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
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 | 1 |