setArguments(new Arguments());
synchronized (allSamplers) {
allSamplers.add(this);
}
if(auth != null) {
String authHeader = auth.getAuthHeaderForURL(url);
if(authHeader != null) {
++hsz;
}
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/java/sampler/JavaSampler.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/AjpSampler.java
|
Method name: void JavaSampler()
|
|
Method name: int getHeaderSize(String, URL)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 4
|
|
1 | setArguments(new Arguments());↵ | | |
|
2 | synchronized (allSamplers) {↵ | | |
|
3 | allSamplers.add(this);↵ | | |
|
4 | ↵ | | 1 | if(auth != null) {↵
|
| | | 2 | String authHeader = auth.getAuthHeaderForURL(url);↵
|
| | | 3 | if(authHeader != null) {↵
|
| | | 4 | ++hsz;↵
|
| | | 5 | }↵
|
5 | } | | 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 different classes having the same super class |
Number of node comparisons | 1 |