CloneSet276


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16210.993statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11679
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/AttachmentModel.java
216444
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/HeaderViewer.java
Next
Last
Clone Instance
1
Line Count
16
Source Line
79
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/AttachmentModel.java

// Remove the BodyPart(s) if any
StreamableMimePart bodyPart = (StreamableMimePart) collection.getFirstTextPart("plain");
if (bodyPart != null) {
  MimePart bodyParent = bodyPart.getParent();
  if (bodyParent != null) {
    if (bodyParent.getHeader().getMimeType().getSubtype().equals("alternative")) {
      List bodyParts = bodyParent.getChilds();
      displayedMimeParts.removeAll(bodyParts);
    }
    else {
      displayedMimeParts.remove(bodyPart);
    }
  }
  else {
    displayedMimeParts.remove(bodyPart);
  }
}


First
Previous
Clone Instance
2
Line Count
16
Source Line
444
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/HeaderViewer.java

// Remove the BodyPart(s) if any
StreamableMimePart bodyPart = (StreamableMimePart) model.getFirstTextPart("plain");
if (bodyPart != null) {
  MimePart bodyParent = bodyPart.getParent();
  if (bodyParent != null) {
    if (bodyParent.getHeader().getMimeType().getSubtype().equals("alternative")) {
      List bodyParts = bodyParent.getChilds();
      displayedMimeParts.removeAll(bodyParts);
    }
    else {
      displayedMimeParts.remove(bodyPart);
    }
  }
  else {
    displayedMimeParts.remove(bodyPart);
  }
}


Clone AbstractionParameter Count: 1Parameter Bindings

// Remove the BodyPart(s) if any
StreamableMimePart bodyPart = (StreamableMimePart)  [[#variable1321f120]].getFirstTextPart("plain");
if (bodyPart != null) {
  MimePart bodyParent = bodyPart.getParent();
  if (bodyParent != null) {
    if (bodyParent.getHeader().getMimeType().getSubtype().equals("alternative")) {
      List bodyParts = bodyParent.getChilds();
      displayedMimeParts.removeAll(bodyParts);
    }
    else {
      displayedMimeParts.remove(bodyPart);
    }
  }
  else {
    displayedMimeParts.remove(bodyPart);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1321f120]]
collection 
12[[#1321f120]]
model