File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/ActionRouter.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportActionRouter.java | |||
Method name: void populateCommandMap()
|
Method name: void populateCommandMap()
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | command = (Command) commandClass.newInstance();↵ | 1 | command = (Command) commandClass.newInstance();↵ | |
2 | Iterator iter = command.getActionNames().iterator();↵ | 2 | Iterator iter = command.getActionNames().iterator();↵ | |
3 | while (iter.hasNext()) {↵ | 3 | while (iter.hasNext()) {↵ | |
4 | String commandName = (String) iter.next();↵ | 4 | String commandName = (String) iter.next();↵ | |
5 | Set commandObjects = (Set) commands.get(commandName);↵ | 5 | Set commandObjects = (Set) commands.get(commandName);↵ | |
6 | if (commandObjects == null) {↵ | 6 | if (commandObjects == null) {↵ | |
7 | commandObjects = new HashSet();↵ | 7 | commandObjects = new HashSet();↵ | |
8 | commands.put(commandName, commandObjects);↵ | 8 | commands.put(commandName, commandObjects);↵ | |
9 | }↵ | 9 | }↵ | |
10 | commandObjects.add(command);↵ | 10 | commandObjects.add(command);↵ | |
11 | } | 11 |
| |
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 in different classes |
Number of node comparisons | 33 |
Number of mapped statements | 9 |
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) | 15.3 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
17 | command = (Command)commandClass.newInstance(); | 17 | command = (Command)commandClass.newInstance(); | |
18 | Iterator iter = command.getActionNames().iterator(); | 18 | Iterator iter = command.getActionNames().iterator(); | |
19 | while (iter.hasNext()) | 19 | while (iter.hasNext()) | |
20 | String commandName = (String)iter.next(); | 20 | String commandName = (String)iter.next(); | |
21 | Set commandObjects = (Set)commands.get(commandName); | 21 | Set commandObjects = (Set)commands.get(commandName); | |
22 | if (commandObjects == null) | 22 | if (commandObjects == null) | |
23 | commandObjects = new HashSet(); | 23 | commandObjects = new HashSet(); | |
24 | commands.put(commandName, commandObjects); | 24 | commands.put(commandName, commandObjects); | |
25 | commandObjects.add(command); | 25 | commandObjects.add(command); |
Row | Violation |
---|