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: 4 | |||
1 | if (attr.equals(Constants.CURRENTTHREADCOUNT)) {↵ | 1 | if (attr.equals(Constants.BYTESRECEIVED)) {↵ | |
2 | threadinfo.setCurrentThreadCount(parseInt(attributes.getValue(idx)));↵ | 2 | requestinfo.setBytesReceived(parseLong(attributes.getValue(idx)));↵ | |
3 | } else if (attr.equals(Constants.CURRENTBUSYTHREADS)) {↵ | 3 | } else if (attr.equals(Constants.BYTESSENT)) {↵ | |
4 | threadinfo.setCurrentThreadsBusy(parseInt(attributes.getValue(idx)));↵ | 4 | requestinfo.setBytesSent(parseLong(attributes.getValue(idx)));↵ | |
5 | } | 5 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 14 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47 | else if (attr.equals(Constants.CURRENTTHREADCOUNT)) |
| 67 | else if (attr.equals(Constants.BYTESRECEIVED)) | ||||||||||
48 | threadinfo.setCurrentThreadCount(parseInt(attributes.getValue(idx))); | | ||||||||||||
| 68 | requestinfo.setBytesReceived(parseLong(attributes.getValue(idx))); | ||||||||||||
49 | else if (attr.equals(Constants.CURRENTBUSYTHREADS)) |
| 69 | else if (attr.equals(Constants.BYTESSENT)) | ||||||||||
50 | threadinfo.setCurrentThreadsBusy(parseInt(attributes.getValue(idx))); | | ||||||||||||
| 70 | requestinfo.setBytesSent(parseLong(attributes.getValue(idx))); |
Row | Violation |
---|