if (o instanceof CollectionProperty) { if (value != null) { return value.equals(((JMeterProperty) o).getObjectValue()); } }
if (newName == null || !newName.equals(getName())) { super.setName(newName); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/property/CollectionProperty.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/util/HTTPArgument.java
Method name: boolean equals(Object) Method name: void setName(String)
Number of AST nodes: 3 Number of AST nodes: 2
1
if (o instanceof CollectionProperty) {
1
if (
2
			if (value != null) {
2
newName == null
3
				return value.equals(((JMeterProperty) o).getObjectValue());
4
			}
3
 || !newName.equals(getName())) {
4
			super.setName(newName);
5
		}
5
		}
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