File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/NameUpdater.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/NameUpdater.java | |||
Method name: String getCurrentTestName(String, String)
|
Method name: String getCurrentName(String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (nameMap.containsKey(key)) {↵ | 1 | if (nameMap.containsKey(↵ | |
2 | ↵ | 2 | className)) {↵ | |
3 | String newName = nameMap.getProperty(key);↵ | 3 | String newName = nameMap.getProperty(↵ | |
4 | ↵ | 4 | className);↵ | |
5 | log.info("Upgrading " + key + " to " + newName);↵ | 5 | log.info("Upgrading class " + className + " to " + newName);↵ | |
6 | return newName;↵ | 6 | return newName;↵ | |
7 | } | 7 | } | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
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.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (nameMap.containsKey(key)) |
| 1 | if (nameMap.containsKey(className)) | |||||||||||||
3 | String newName = nameMap.getProperty(key); |
| 2 | String newName = nameMap.getProperty(className); | |||||||||||||
4 | log.info("Upgrading " + key + " to " + newName); |
| 3 | log.info("Upgrading class " + className + " to " + newName); | |||||||||||||
5 | return newName; | 4 | return newName; |
Row | Violation |
---|---|
1 | Not all possible execution flows end in a return statement |