JPopupMenu pop = new JPopupMenu(); ReportMenuFactory.addFileMenu(pop); ReportMenuFactory.addEditMenu(pop,true); return pop;
LDAPArguments args = new LDAPArguments(); modifyTestElement(args); // TODO: Why do we clone the return value? This is the only reference // to it (right?) so we shouldn't need a separate copy. return (TestElement) args.clone();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/BarChartGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LDAPArgumentsPanel.java
Method name: JPopupMenu createPopupMenu() Method name: TestElement createTestElement()
Number of AST nodes: 4 Number of AST nodes: 3
1
JPopupMenu pop = new JPopupMenu();
2
        ReportMenuFactory.addFi
1
LDAPArguments args = new LDAPArguments();
3
leMenu(pop);
2
		modifyTestElemen
4
        ReportMenuFactory.addEditMenu(pop,true);
5
        return pop
3
t(args);
4
		// TODO: Why do we clone the return value? This is the only reference
5
		// to it (right?) so we shouldn't need a separate copy.
6
;
6
		return (TestElement) args.clone();
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 locationClones are in different classes having the same super class
Number of node comparisons12