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)));
}
requestinfo.setMaxTime(parseInt(attributes.getValue(idx)));
} else if (attr.equals(Constants.PROCESSINGTIME)) {
requestinfo.setProcessingTime(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 | requestinfo.setMaxTime(parseInt(attributes.getValue(idx)));↵
|
3 | } else if (attr.equals(Constants.MEMORY_MAX)) {↵ | | 2 | } else if (attr.equals(Constants.↵
|
4 | memory.setMax↵ | | 3 | PROCESSINGTIME)) {↵
|
5 | (parseLong(attributes.getValue(idx)));↵ | | 4 | requestinfo.setProcessingTime(parseInt(attributes.getValue(idx)));
|
6 | } | | | |
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 |