if (attr.equals(Constants.BYTESRECEIVED)) {
requestinfo.setBytesReceived(parseLong(attributes.getValue(idx)));
} else if (attr.equals(Constants.BYTESSENT)) {
requestinfo.setBytesSent(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.BYTESRECEIVED)) {↵ | | |
|
2 | requestinfo.setBytesReceived(parseLong(attributes.getValue(idx)));↵ | | 1 | threadinfo.setMaxSpareThreads(parseInt(attributes.getValue(idx)));↵
|
3 | } else if (attr.equals(Constants.BYTESSENT)) {↵ | | 2 | } else if (attr.equals(Constants.CURRENTTHREADCOUNT)) {↵
|
4 | requestinfo.setBytesSent(parseLong(attributes.getValue(idx)));↵ | | 3 | threadinfo.setCurrentThreadCount(parseInt(attributes.getValue(idx)));
|
5 | } | | | |
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 0 |