if (attr.equals(Constants.MEMORY_TOTAL)) { memory.setTotal(parseLong(attributes.getValue(idx))); } else if (attr.equals(Constants.MEMORY_MAX)) { memory.setMax(parseLong(attributes.getValue(idx))); }
threadinfo.setMaxSpareThreads(parseInt(attributes.getValue(idx))); } else if (attr.equals(Constants.CURRENTTHREADCOUNT)) { threadinfo.setCurrentThreadCount(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.MEMORY_TOTAL)) {
2
							memory.setTotal(parseLong(attributes.getValue(idx)));
1
threadinfo.setMaxSpareThreads(parseInt(attributes.getValue(idx)));
3
						} else if (attr.equals(Constants.MEMORY_MAX)) {
2
						} else if (attr.equals(Constants.
4
							memory.setMax
3
CURRENTTHREADCOUNT)) {
5
(parseLong(attributes.getValue(idx)));
4
							threadinfo.setCurrentThreadCount(parseInt(attributes.getValue(idx)));
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.0
Clones locationClones are in the same method
Number of node comparisons0