File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java | |||
Method name: SampleResult sample(Entry)
|
Method name: SampleResult sample(Entry)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | cdata.append(NEW_LINE);↵ | 1 | cdata.append(NEW_LINE);↵ | |
2 | cdata.append("To: "); // $NON-NLS-1$↵ | 2 | cdata.append("From: "); // $NON-NLS-1$↵ | |
3 | Address[] recips = message.getAllRecipients();↵ | 3 | Address[] from = message.getFrom();↵ | |
4 | for (int j = 0; j < recips.length; j++) {↵ | 4 | for (int j = 0; j < from.length; j++) {↵ | |
5 | cdata.append(recips[j].toString());↵ | 5 | cdata.append(from[j].toString());↵ | |
6 | if (j < recips.length - 1) {↵ | 6 | if (j < from.length - 1) {↵ | |
7 | cdata.append("; "); // $NON-NLS-1$↵ | 7 | cdata.append("; "); // $NON-NLS-1$↵ | |
8 | }↵ | 8 | }↵ | |
9 | }↵ | 9 | }↵ | |
10 | cdata.append(NEW_LINE);↵ | 10 | cdata.append(NEW_LINE);↵ | |
11 | cdata.append("From: "); | 11 | cdata.append("Subject: "); | |
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.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 26 |
Number of mapped statements | 9 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 3.8 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37 | cdata.append(NEW_LINE); | 44 | cdata.append(NEW_LINE); | ||||||||||||||
38 | cdata.append("To: "); |
| 51 | cdata.append(NEW_LINE); | |||||||||||||
39 | Address[] recips = message.getAllRecipients(); |
| 46 | Address[] from = message.getFrom(); | |||||||||||||
40 | for (int j = 0; j < recips.length; j++) |
| 47 | for (int j = 0; j < from.length; j++) | |||||||||||||
41 | cdata.append(recips[j].toString()); |
| 48 | cdata.append(from[j].toString()); | |||||||||||||
42 | if (j < recips.length - 1) |
| 49 | if (j < from.length - 1) | |||||||||||||
43 | cdata.append("; "); | 50 | cdata.append("; "); | ||||||||||||||
44 | cdata.append(NEW_LINE); | 44 | cdata.append(NEW_LINE); | ||||||||||||||
45 | cdata.append("From: "); | 45 | cdata.append("From: "); | ||||||||||||||
|
| 52 | cdata.append("Subject: "); |
Row | Violation |
---|---|
1 | Unmatched statement cdata.append("Subject: "); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |