CloneSet415


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21201.000statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121338
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/composer/MessageComposer.java
222403
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/composer/MessageComposer.java
Next
Last
Clone Instance
1
Line Count
21
Source Line
338
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/composer/MessageComposer.java

// add encoding if necessary
if (needQPEncoding(body)) {
  bodyPart.getHeader().setContentTransferEncoding("quoted-printable");
  // check if the charset is US-ASCII then there is something wrong
  // -> switch to UTF-8 and write to log-file
  if (charsetName.equalsIgnoreCase("us-ascii")) {
    charsetName = "UTF-8";
    LOG.info("Charset was US-ASCII but text has 8-bit chars -> switched to UTF-8");
  }
}
bodyPart.getHeader().putContentParameter("charset", charsetName);
// to allow empty messages
if (body.length() == 0) {
  body = " ";
}
bodyPart.setBody(new CharSequenceSource(body));
return bodyPart;


First
Previous
Clone Instance
2
Line Count
22
Source Line
403
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/composer/MessageComposer.java

if (needQPEncoding(body)) {
  bodyPart.getHeader().setContentTransferEncoding("quoted-printable");
  // check if the charset is US-ASCII then there is something wrong
  // -> switch to UTF-8 and write to log-file
  if (charsetName.equalsIgnoreCase("us-ascii")) {
    charsetName = "UTF-8";
    LOG.info("Charset was US-ASCII but text has 8-bit chars -> switched to UTF-8");
  }
}
// write charset to header
bodyPart.getHeader().putContentParameter("charset", charsetName);
// to allow empty messages
if (body.length() == 0) {
  body = " ";
}
bodyPart.setBody(new CharSequenceSource(body));
return bodyPart;


Clone AbstractionParameter Count: 0Parameter Bindings

// add encoding if necessary
if (needQPEncoding(body)) {
  bodyPart.getHeader().setContentTransferEncoding("quoted-printable");
  // check if the charset is US-ASCII then there is something wrong
  // -> switch to UTF-8 and write to log-file
  if (charsetName.equalsIgnoreCase("us-ascii")) {
    charsetName = "UTF-8";
    LOG.info("Charset was US-ASCII but text has 8-bit chars -> switched to UTF-8");
  }
}
// write charset to header
bodyPart.getHeader().putContentParameter("charset", charsetName);
// to allow empty messages
if (body.length() == 0) {
  body = " ";
}
bodyPart.setBody(new CharSequenceSource(body));
return bodyPart;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None