worker.setRequestBytesSent(parseLong(attributes.getValue(idx))); } else if (attr.equals(Constants.REQUESTBYTESRECEIVED)) { worker.setRequestBytesReceived(parseLong(attributes.getValue(idx)));
if (attr.equals(Constants.CURRENTTHREADCOUNT)) { threadinfo.setCurrentThreadCount(parseInt(attributes.getValue(idx))); } else if (attr.equals(Constants.CURRENTBUSYTHREADS)) { threadinfo.setCurrentThreadsBusy(parseInt(attributes.getValue(idx))); }
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/jmeter/monitor/parser/MonitorHandler.java
Method name: void startElement(String, String, String, Attributes) Method name: void startElement(String, String, String, Attributes)
Number of AST nodes: 2 Number of AST nodes: 4
1
worker.setRequestBytesSe
1
if (attr.equals(Constants.CURRENTTHREADCOUNT)) {
2
nt(parseLong(attributes.getValue(idx)));
2
							threadinfo.setCurrentThreadCount(parseInt(attributes.getValue(idx)));
3
						} else if (attr.equals(Constants.REQUESTBYTESRECEIVED)) {
3
						} else if (attr.equals(Constants.CURRENTBUSYTHREADS)) {
4
							worker.setRequestBytesReceived(parseLong(attributes.getValue(idx)));
4
							threadinfo.setCurrentThreadsBusy(parseInt(attributes.getValue(idx)));
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.0
Clones locationClones are in the same method
Number of node comparisons0