File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/FormCharSetFinder.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/Proxy.java | |||
Method name: void parseNodes(NodeIterator, Map, String)
|
Method name: String addPageEncoding(SampleResult)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | if(formCharSet != null) {↵ | 1 | if(pageEncoding != null) {↵ | |
2 | ↵ | 2 | String urlWithoutQuery = getUrlWithoutQuery(result.getURL());↵ | |
3 | synchronized (formEncodings) {↵ | 3 | synchronized(pageEncodings) {↵ | |
4 | formEncodings.put(action, formCharSet);↵ | 4 | pageEncodings.put(urlWithoutQuery, pageEncoding);↵ | |
5 | }↵ | 5 | ↵ | |
6 | ↵ | 6 | }↵ | |
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) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 6 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.8 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17 | if (formCharSet != null) |
| 2 | if (pageEncoding != null) | ||||||||||||||||
| 3 | String urlWithoutQuery = getUrlWithoutQuery(result.getURL()); | ||||||||||||||||||
18 | synchronized (formEncodings) |
| 4 | synchronized (pageEncodings) | ||||||||||||||||
19 | formEncodings.put(action, formCharSet); |
| 5 | pageEncodings.put(urlWithoutQuery, pageEncoding); |
Row | Violation |
---|