if (testElement instanceof TestElement) { String comment = ((TestElement) testElement).getComment(); if (comment != null && comment.length() > 0) { return comment; } }
if (treePath != null) { return list(Arrays.asList(treePath)); } return list();
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/collections/HashTree.java
Method name: String getToolTipText(MouseEvent) Method name: Collection list(Object[])
Number of AST nodes: 4 Number of AST nodes: 3
1
if (testElement instanceof TestElement) {
1
if (t
2
							String comment = ((TestElement) testElement).getComment();
3
							if (comment != null && comment.length() > 0) {
4
								return comment;
5
								}
6
							}
2
reePath != null) {
3
			return list(Arrays.asList(treePath));
4
		}
5
		return list();
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