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: 10 | Number of AST nodes: 10 | |||
1 | if (!Modifier.isAbstract(commandClass.getModifiers())) {↵ | 1 | if (!Modifier.isAbstract(commandClass.getModifiers())) {↵ | |
2 | command = (Command) commandClass.newInstance();↵ | 2 | command = (Command) commandClass.newInstance();↵ | |
3 | Iterator iter = command.getActionNames().iterator();↵ | 3 | Iterator iter = command.getActionNames().iterator();↵ | |
4 | while (iter.hasNext()) {↵ | 4 | while (iter.hasNext()) {↵ | |
5 | String commandName = (String) iter.next();↵ | 5 | String commandName = (String) iter.next();↵ | |
6 | Set commandObjects = (Set) commands.get(commandName);↵ | 6 | Set commandObjects = (Set) commands.get(commandName);↵ | |
7 | if (commandObjects == null) {↵ | 7 | if (commandObjects == null) {↵ | |
8 | commandObjects = new HashSet();↵ | 8 | commandObjects = new HashSet();↵ | |
9 | commands.put(commandName, commandObjects);↵ | 9 | commands.put(commandName, commandObjects);↵ | |
10 | }↵ | 10 | }↵ | |
11 | commandObjects.add(command);↵ | 11 | commandObjects.add(command);↵ | |
12 | }↵ | 12 | }↵ | |
13 | } | 13 |
| |
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 | 38 |
Number of mapped statements | 10 |
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.7 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
16 | if (!Modifier.isAbstract(commandClass.getModifiers())) | 16 | if (!Modifier.isAbstract(commandClass.getModifiers())) | |
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 |
---|