File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/AjpSampler.java | |||
Method name: void populateSampler(Map, Map)
|
Method name: int getHeaderSize(String, URL)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | synchronized (formEncodings) {↵ | 1 | if(auth != null) {↵ | |
2 | String formEncoding = (String) formEncodings.get(urlWithoutQuery);↵ | 2 | String ↵ | |
3 | // Form encoding has priority over page encoding↵ | |||
4 | if (formEncoding != null) {↵ | |||
5 | contentEncoding = formEncoding;↵ | |||
6 | }↵ | |||
7 | ↵ | 3 | authHeader = auth.getAuthHeaderForURL(url);↵ | |
4 | if(authHeader != null) {↵ | |||
5 | ++hsz;↵ | |||
6 | }↵ | |||
8 | } | 7 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 27.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35 | String formEncoding = (String)formEncodings.get(urlWithoutQuery); |
| 15 | String authHeader = auth.getAuthHeaderForURL(url); | |||||||||||||
36 | if (formEncoding != null) |
| 16 | if (authHeader != null) | |||||||||||||
| 17 | ++hsz; | |||||||||||||||
37 | contentEncoding = formEncoding; | |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables formEncoding , while Clone fragment #2 returns variables |