File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/save/TestElementSaver.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/save/TestElementSaver.java | |||
Method name: void startMap(MapProperty)
|
Method name: void startCollection(CollectionProperty)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | DefaultConfiguration config = new DefaultConfiguration("map", "map");↵ | 1 | DefaultConfiguration config = new DefaultConfiguration("collection", "collection");↵ | |
2 | config.setAttribute("class", map.getObjectValue().getClass().getName());↵ | 2 | config.setAttribute("class", col.getObjectValue().getClass().getName());↵ | |
3 | config.setAttribute("name", map.getName());↵ | 3 | config.setAttribute("name", col.getName());↵ | |
4 | config.setAttribute("propType", map.getClass().getName());↵ | 4 | config.setAttribute("propType", col.getClass().getName());↵ | |
5 | stack.add(config); | 5 |
| |
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 17 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | DefaultConfiguration config = new DefaultConfiguration("map", "map"); |
| 1 | DefaultConfiguration config = new DefaultConfiguration("collection", "collection"); | |||||||||||||
2 | config.setAttribute("class", map.getObjectValue().getClass().getName()); |
| 2 | config.setAttribute("class", col.getObjectValue().getClass().getName()); | |||||||||||||
3 | config.setAttribute("name", map.getName()); |
| 3 | config.setAttribute("name", col.getName()); | |||||||||||||
4 | config.setAttribute("propType", map.getClass().getName()); |
| 4 | config.setAttribute("propType", col.getClass().getName()); | |||||||||||||
5 | stack.add(config); | 5 | stack.add(config); |
Row | Violation |
---|