File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/PostWriter.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/PostWriter.java | |||
Method name: byte[] getFileMultipartEndDivider()
|
Method name: byte[] getMultipartEndDivider()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | byte[] ending = getMultipartDivider();↵ | 1 | byte[] ending = DASH_DASH_BYTES;↵ | |
2 | byte[] completeEnding = new byte[ending.length + CRLF.length];↵ | 2 | byte[] completeEnding = new byte[ending.length + CRLF.length];↵ | |
3 | System.arraycopy(CRLF, 0, completeEnding, 0, CRLF.length);↵ | 3 | System.arraycopy(ending, 0, completeEnding, 0, ending.length);↵ | |
4 | System.arraycopy(ending, 0, completeEnding, CRLF.length, ending.length);↵ | 4 | System.arraycopy(CRLF, 0, completeEnding, ending.length, CRLF.length);↵ | |
5 | return completeEnding; | 5 |
| |
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 | 25 |
Number of mapped statements | 5 |
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 | byte[] ending = getMultipartDivider(); |
| 1 | byte[] ending = DASH_DASH_BYTES; | |||||||||||
2 | byte[] completeEnding = new byte[ending.length + CRLF.length]; | 2 | byte[] completeEnding = new byte[ending.length + CRLF.length]; | ||||||||||||
3 | System.arraycopy(CRLF, 0, completeEnding, 0, CRLF.length); |
| 4 | System.arraycopy(CRLF, 0, completeEnding, ending.length, CRLF.length); | |||||||||||
4 | System.arraycopy(ending, 0, completeEnding, CRLF.length, ending.length); |
| 3 | System.arraycopy(ending, 0, completeEnding, 0, ending.length); | |||||||||||
5 | return completeEnding; | 5 | return completeEnding; |
Row | Violation |
---|---|
1 | Expression ending.length cannot be parameterized, because it has dependencies to/from statements that will be extracted |