switch (encoding) {
case MimeHeader.QUOTED_PRINTABLE:
bodyStream = new QuotedPrintableDecoderInputStream(bodyStream);
break;
case MimeHeader.BASE64:
bodyStream = new Base64DecoderInputStream(bodyStream);
break;
default:
}
switch (encoding) {
case MimeHeader.QUOTED_PRINTABLE:
bodyStream = new QuotedPrintableDecoderInputStream(bodyStream);
break;
case MimeHeader.BASE64:
bodyStream = new Base64DecoderInputStream(bodyStream);
break;
default:
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/command/ForwardInlineCommand.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/TextViewer.java
|
Method name: void execute(IWorkerStatusController)
|
|
Method name: void downloadMimePart(MimePart, File)
|
Number of AST nodes: 8
|
|
Number of AST nodes: 8
|
|
1 | switch (encoding) {↵ | | 1 | switch (encoding) {↵
|
2 | case MimeHeader.QUOTED_PRINTABLE:↵ | | 2 | case MimeHeader.QUOTED_PRINTABLE:↵
|
3 | bodyStream = new QuotedPrintableDecoderInputStream(bodyStream);↵ | | 3 | bodyStream = new QuotedPrintableDecoderInputStream(bodyStream);↵
|
4 | break;↵ | | |
|
|
5 | ↵ | | 4 | break;↵
|
|
6 | case MimeHeader.BASE64:↵ | | 5 | case MimeHeader.BASE64:↵
|
7 | bodyStream = new Base64DecoderInputStream(bodyStream);↵ | | 6 | bodyStream = new Base64DecoderInputStream(bodyStream);↵
|
8 | break;↵ | | |
|
9 | default:↵ | | |
|
10 | ↵ | | 7 | break;↵
|
| | | 8 | default:↵
|
11 | } | | 9 | }
|
See real code fragment |
|
See real code fragment |
Summary
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 35 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 8 |
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) | 1.1 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
30 | switch (encoding) | | 4 | switch (encoding) |
31 | case MimeHeader.QUOTED_PRINTABLE: | | 5 | case MimeHeader.QUOTED_PRINTABLE: |
32 | bodyStream = new QuotedPrintableDecoderInputStream(bodyStream); | | 6 | bodyStream = new QuotedPrintableDecoderInputStream(bodyStream); |
33 | | | 7 | |
34 | | | 8 | |
35 | bodyStream = new Base64DecoderInputStream(bodyStream); | | 9 | bodyStream = new Base64DecoderInputStream(bodyStream); |
36 | | | 10 | |
37 | | | 11 | |
Precondition Violations (0)
Row |
Violation |