File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/HttpSSLProtocolSocketFactory.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/HttpSSLProtocolSocketFactory.java | |||
Method name: Socket createSocket(Socket, String, int, boolean)
|
Method name: Socket createSocket(String, int, InetAddress, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | SSLSocketFactory sslfac = getSSLSocketFactory();↵ | 1 | SSLSocketFactory sslfac = getSSLSocketFactory();↵ | |
2 | Socket sock = sslfac.createSocket(↵ | 2 | Socket sock = sslfac.createSocket(↵ | |
3 | socket,↵ | 3 | host,↵ | |
4 | host,↵ | 4 | port,↵ | |
5 | port,↵ | 5 | clientHost,↵ | |
6 | autoClose↵ | 6 | clientPort↵ | |
7 | );↵ | 7 | );↵ | |
8 | setSocket(sock);↵ | 8 | setSocket(sock);↵ | |
9 | return wrapSocket(sock); | 9 | return wrapSocket(sock); | |
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
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 | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | SSLSocketFactory sslfac = getSSLSocketFactory(); | 1 | SSLSocketFactory sslfac = getSSLSocketFactory(); | ||||||||||||||||||||||||||||||||||||
2 | Socket sock = sslfac.createSocket(socket, host, port, autoClose); |
| 2 | Socket sock = sslfac.createSocket(host, port, clientHost, clientPort); | |||||||||||||||||||||||||||||||||||
3 | setSocket(sock); | 3 | setSocket(sock); | ||||||||||||||||||||||||||||||||||||
4 | return wrapSocket(sock); | 4 | return wrapSocket(sock); |
Row | Violation |
---|---|
1 | Type java.net.Socket of variable socket does not match with type java.lang.String of variable host |
2 | Type java.lang.String of variable host does not match with type int of variable port |
3 | Type int of variable port does not match with type java.net.InetAddress of variable clientHost |
4 | Type boolean of variable autoClose does not match with type int of variable clientPort |