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 createFunctionSet()
|
Method name: void createTagSet()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | Element section = body.getChild("section");↵ | 1 | Element body = root.getChild("body");↵ | |
2 | List sections = section.getChildren("subsection");↵ | 2 | List sections = body.getChildren("section");↵ | |
3 | for (int i = 0; i < sections.size(); i++) {↵ | 3 | for (int i = 0; i < sections.size(); i++) {↵ | |
4 | List components = ((Element) sections.get(i)).getChildren("component");↵ | 4 | List components = ((Element) sections.get(i)).getChildren("component");↵ | |
5 | for (int j = 0; j < components.size(); j++) {↵ | 5 | for (int j = 0; j < components.size(); j++) {↵ | |
6 | Element comp = (Element) components.get(j);↵ | 6 | Element comp = (Element) components.get(j);↵ | |
7 | funcTitles.put(comp.getAttributeValue("name"), Boolean.FALSE);↵ | 7 | guiTags.put(comp.getAttributeValue("tag"), Boolean.FALSE);↵ | |
8 | }↵ | 8 | }↵ | |
9 | } | 9 |
| |
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.4 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 18 |
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) | 4.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | Element section = body.getChild("section"); |
| 7 | Element body = root.getChild("body"); | ||||||||||||||||
9 | List sections = section.getChildren("subsection"); |
| 8 | List sections = body.getChildren("section"); | ||||||||||||||||
10 | for (int i = 0; i < sections.size(); i++) | 9 | for (int i = 0; i < sections.size(); i++) | |||||||||||||||||
11 | List components = ((Element)sections.get(i)).getChildren("component"); | 10 | List components = ((Element)sections.get(i)).getChildren("component"); | |||||||||||||||||
12 | for (int j = 0; j < components.size(); j++) | 11 | for (int j = 0; j < components.size(); j++) | |||||||||||||||||
13 | Element comp = (Element)components.get(j); | 12 | Element comp = (Element)components.get(j); | |||||||||||||||||
14 | funcTitles.put(comp.getAttributeValue("name"), Boolean.FALSE); |
| 13 | guiTags.put(comp.getAttributeValue("tag"), Boolean.FALSE); |
Row | Violation |
---|