for (int i = 0; i < menuElement.length; i++) { JMenu menu = (JMenu) menuElement[i]; if (menu.isSelected()) { menu.setPopupMenuVisible(false); menu.setSelected(false); break; } }
for (int i = 0; i < strPathsOrJars.length; i++) { if (strPath.endsWith(strPathsOrJars[i])) { found = true; log.debug("Adding " + strPath + " found at " + i); listPaths.add(strPath); break;// no need to look further } }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/MainFrame.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/reflect/ClassFinder.java
Method name: void closeMenu() Method name: List getClasspathMatches(String[])
Number of AST nodes: 6 Number of AST nodes: 6
1
for (int i = 0; i < menuElement.length; i++) {
1
for (int i = 0; i < strPathsOrJars.length; i++) {
2
					JMenu menu = (JMenu) menuElement[i];
2
					
3
					if (menu.isSelected()) {
4
						menu.setPopupMenuVisible(false);
5
						menu.setSelected(false);
6
						break;
3
if (strPath.endsWith(strPathsOrJars[i])) {
4
						found = true;
5
						log.debug("Adding " + strPath + " found at " + i);
6
						listPaths.add(strPath);
7
						break;// no need to look further
7
					}
8
					}
8
				}
9
				}
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.1
Clones locationClones are in different classes
Number of node comparisons1