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()); }
ActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.SAVE_ALL_AS)); if (!GuiPackage.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/gui/action/ExitCommand.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();
1
A
2
			// Because CollectionProperty.mergeIn will not prevent adding two
3
			// properties of the same name, we need to select the first value so
4
			// that this element's values prevail over defaults provided by
5
			// configuration
6
			// elements:
2
ctionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.SAVE_ALL_AS));
7
			if (!argMap.containsKey(arg.getName())) {
3
				if (!
8
			    argMap.put(arg.getName(), arg.getValue()
4
GuiPackage.getInstance().isDirty()) {
9
);
5
					System.exit(0);
10
			}
6
				}
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