((StatusImpl) status).addConnector(connector); stacktree.push(connector); if (attributes != null) { for (int idx = 0; idx < attributes.getLength(); idx++) { String attr = attributes.getQName(idx); if (attr.equals(Constants.ATTRIBUTE_NAME)) { connector.setName(attributes.getValue(idx)); } } }
Object value = objects.get(row); if (col < writeFunctors.size()) { Functor setMethod = (Functor) writeFunctors.get(col); if (setMethod != null) { setMethod.invoke(value, new Object[] { cellValue }); super.fireTableDataChanged(); } } else if(headers.size() == 1) { objects.set(row,cellValue); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/monitor/parser/MonitorHandler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/gui/ObjectTableModel.java
Method name: void startElement(String, String, String, Attributes) Method name: void setValueAt(Object, int, int)
Number of AST nodes: 7 Number of AST nodes: 8
1
((StatusImpl) status).addConnector(connector);
2
				stacktree.push(connector
1
Object value = objects.get(row);
2
			if (col < writeFunctors.size()) {
3
);
3
				Functor setMethod = (Functor) writeFunctors.get(col);
4
				if (attributes != null) {
4
				if (setMethod != null) {
5
					for (int idx = 0; idx < attributes.getLength(); idx++) {
5
					
6
						String attr = attributes.getQName(idx);
7
						if (attr.equals(Constants.ATTRIBUTE_NAME)) {
6
setMethod.invoke(value, new Object[] { cellValue });
7
					super.fireTableDataChanged();
8
				}
9
			}
10
			else if(headers.size() == 1)
8
			
11
			{
9
				connector.setName(attributes.getValue(idx));
12
				objects.set
10
						}
11
					}
12
	
13
(row,cellValue);
13
			}
14
			}
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