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