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: 6 | Number of AST nodes: 6 | |||
1 | if (attr.equals(Constants.MAXSPARETHREADS)) {↵ | 1 | if (attr.equals(Constants.ERRORCOUNT)) {↵ | |
2 | threadinfo.setMaxSpareThreads(parseInt(attributes.getValue(idx)));↵ | 2 | requestinfo.setErrorCount(parseInt(attributes.getValue(idx)));↵ | |
3 | } else if (attr.equals(Constants.CURRENTTHREADCOUNT)) {↵ | 3 | } else if (attr.equals(Constants.BYTESRECEIVED)) {↵ | |
4 | threadinfo.setCurrentThreadCount(parseInt(attributes.getValue(idx)));↵ | 4 | requestinfo.setBytesReceived(parseLong(attributes.getValue(idx)));↵ | |
5 | } else if (attr.equals(Constants.CURRENTBUSYTHREADS)) {↵ | 5 | } else if (attr.equals(Constants.BYTESSENT)) {↵ | |
6 | threadinfo.setCurrentThreadsBusy(parseInt(attributes.getValue(idx)));↵ | 6 | requestinfo.setBytesSent(parseLong(attributes.getValue(idx)));↵ | |
7 | } | 7 |
| |
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) | 1.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 28 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 1.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45 | else if (attr.equals(Constants.MAXSPARETHREADS)) |
| 65 | else if (attr.equals(Constants.ERRORCOUNT)) | ||||||||||
46 | threadinfo.setMaxSpareThreads(parseInt(attributes.getValue(idx))); | | ||||||||||||
| 66 | requestinfo.setErrorCount(parseInt(attributes.getValue(idx))); | ||||||||||||
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 |
---|