if (strClassName.startsWith("org.apache.jmeter.gui")) { commandClass = Class.forName(strClassName); if (!Modifier.isAbstract(commandClass.getModifiers())) { command = (Command) commandClass.newInstance(); Iterator iter = command.getActionNames().iterator(); while (iter.hasNext()) { String commandName = (String) iter.next(); Set commandObjects = (Set) commands.get(commandName); if (commandObjects == null) { commandObjects = new HashSet(); commands.put(commandName, commandObjects); } commandObjects.add(command);
if (strClassName.startsWith("org.apache.jmeter.report.gui.action")) { // log.info("classname:: " + strClassName); commandClass = Class.forName(strClassName); if (!Modifier.isAbstract(commandClass.getModifiers())) { command = (Command) commandClass.newInstance(); Iterator iter = command.getActionNames().iterator(); while (iter.hasNext()) { String commandName = (String) iter.next(); Set commandObjects = (Set) commands.get(commandName); if (commandObjects == null) { commandObjects = new HashSet(); commands.put(commandName, commandObjects); } commandObjects.add(command);
Clone fragments detected by clone detection tool
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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (strClassName.startsWith("org.apache.jmeter.gui")) {
1
if (strClassName.startsWith("org.apache.jmeter.report.gui.action")) {
2
                    // log.info("classname:: " + strClassName);
2
                    commandClass = Class.forName(strClassName);
3
                    commandClass = Class.forName(strClassName);
3
                    if (!Modifier.isAbstract(commandClass.getModifiers())) {
4
                    if (!Modifier.isAbstract(commandClass.getModifiers())) {
4
                        command = (Command) commandClass.newInstance();
5
                        command = (Command) commandClass.newInstance();
5
                        Iterator iter = command.getActionNames().iterator();
6
                        Iterator iter = command.getActionNames().iterator();
6
                        while (iter.hasNext()) {
7
                        while (iter.hasNext()) {
7
                            String commandName = (String) iter.next();
8
                            String commandName = (String) iter.next();
8
                            Set commandObjects = (Set) commands.get(commandName);
9
                            Set commandObjects = (Set) commands.get(commandName);
9
                            if (commandObjects == null) {
10
                            if (commandObjects == null) {
10
                                commandObjects = new HashSet();
11
                                commandObjects = new HashSet();
11
                                commands.put(commandName, commandObjects);
12
                                commands.put(commandName, commandObjects);
12
                            }
13
                            }
13
                            commandObjects.add(command);
14
                            commandObjects.add(command);
14
                        
15
                        
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0