if (attr.equals(Constants.BYTESRECEIVED)) { requestinfo.setBytesReceived(parseLong(attributes.getValue(idx))); } else if (attr.equals(Constants.BYTESSENT)) { requestinfo.setBytesSent(parseLong(attributes.getValue(idx))); }
threadinfo.setMinSpareThreads(parseInt(attributes.getValue(idx))); } else if (attr.equals(Constants.MAXSPARETHREADS)) { threadinfo.setMaxSpareThreads(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: 4 Number of AST nodes: 2
1
if (attr.equals(Constants.BYTESRECEIVED)) {
2
							requestinfo.setBytesReceived(parseLong(attributes.getValue(idx)));
1
threadinfo.setMinSpareThreads(parseInt(attributes.getValue(idx)));
3
						} else if (attr.equals(Constants.BYTESSENT)) {
2
						} else if (attr.equals(Constants.MAXSPARETHREADS)) {
4
							requestinfo.setBytesSent(parseLong(attributes.getValue(idx)));
3
							threadinfo.setMaxSpareThreads(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