Argument arg = (Argument) iter.next().getObjectValue(); // Because CollectionProperty.mergeIn will not prevent adding two // properties of the same name, we need to select the first value so // that this element's values prevail over defaults provided by // configuration // elements: if (!argMap.containsKey(arg.getName())) { argMap.put(arg.getName(), arg.getValue()); }
ReportActionRouter.getInstance().doActionNow( new ActionEvent(e.getSource(), e.getID(), ReportSave.SAVE_ALL_AS)); if (!ReportGuiPackage.getInstance().isDirty()) { System.exit(0); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/Arguments.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportExitCommand.java
Method name: Map getArgumentsAsMap() Method name: void doAction(ActionEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
Argument arg = (Argument) iter.next().getObjectValue();
2
			// Because CollectionProperty.mergeIn will not prevent adding two
1
ReportActionRouter.getInstance().doActionNow(
3
			// properties of the same name, we need to select the first value so
2
				
4
			// that this element's values prevail over defaults provided by
5
			// configuration
6
			// elements:
3
		new ActionEvent(e.getSource(), e.getID(),
4
								ReportSave.SAVE_ALL_AS));
7
			if (!argMap.containsKey(arg.getName())) {
5
				if (!
8
			    argMap.put(arg.getName(), arg.getValue()
6
ReportGuiPackage.getInstance().isDirty()) {
9
);
7
					System.exit(0);
10
			}
8
				}
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