File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java | |||
Method name: HTTPSampleResult sample(URL, String, boolean, int)
|
Method name: HTTPSampleResult sample(URL, String, boolean, int)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | httpMethod = new PostMethod(urlStr);↵ | |||
2 | } else if (method.equals(PUT)){↵ | |||
3 | httpMethod = new PutMethod(urlStr);↵ | |||
4 | } else if (method.equals(HEAD)){↵ | |||
1 | httpMethod = new HeadMethod(urlStr);↵ | 5 | httpMethod = new HeadMethod(urlStr);↵ | |
2 | } else if (method.equals(TRACE)){↵ | 6 | } else if (method.equals(TRACE)){↵ | |
3 | httpMethod = new TraceMethod(urlStr);↵ | 7 | httpMethod = new TraceMethod(urlStr);↵ | |
4 | } else if (method.equals(OPTIONS)){↵ | 8 | } else if (method.equals(OPTIONS)){↵ | |
5 | httpMethod = new OptionsMethod(urlStr);↵ | 9 |
| |
6 | } else if (method.equals(DELETE)){↵ | |||
7 | httpMethod = new DeleteMethod(urlStr);↵ | |||
8 | } else if (method.equals(GET)){↵ | |||
9 | httpMethod = new GetMethod(urlStr); | |||
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18 | httpMethod = new HeadMethod(urlStr); |
| 14 | httpMethod = new PostMethod(urlStr); |
Row | Violation |
---|