CloneSet32


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
33201.000block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
133270
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/textarea/Selection.java
233662
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/textarea/Selection.java
Next
Last
Clone Instance
1
Line Count
33
Source Line
270
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/textarea/Selection.java

{
  int end = start + length;
  boolean changed = false;
  if (this.start > start && this.start <= end) {
    this.start = start;
    changed = true;
  }
  else
    if (this.start > end) {
      this.start -= length;
      changed = true;
    }
  if (this.end > start && this.end <= end) {
    this.end = start;
    changed = true;
  }
  else
    if (this.end > end) {
      this.end -= length;
      changed = true;
    }
  if (changed && numLines != 0) {
    this.startLine = buffer.getLineOfOffset(this.start);
    this.endLine = buffer.getLineOfOffset(this.end);
  }
  return changed;
} //}}}


First
Previous
Clone Instance
2
Line Count
33
Source Line
662
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/textarea/Selection.java

{
  int end = start + length;
  boolean changed = false;
  if (this.start > start && this.start <= end) {
    this.start = start;
    changed = true;
  }
  else
    if (this.start > end) {
      this.start -= length;
      changed = true;
    }
  if (this.end > start && this.end <= end) {
    this.end = start;
    changed = true;
  }
  else
    if (this.end > end) {
      this.end -= length;
      changed = true;
    }
  if (changed && numLines != 0) {
    this.startLine = buffer.getLineOfOffset(this.start);
    this.endLine = buffer.getLineOfOffset(this.end);
  }
  return changed;
} //}}}


Clone AbstractionParameter Count: 0Parameter Bindings

{
  int end = start + length;
  boolean changed = false;
  if (this.start > start && this.start <= end) {
    this.start = start;
    changed = true;
  }
  else
    if (this.start > end) {
      this.start -= length;
      changed = true;
    }
  if (this.end > start && this.end <= end) {
    this.end = start;
    changed = true;
  }
  else
    if (this.end > end) {
      this.end -= length;
      changed = true;
    }
  if (changed && numLines != 0) {
    this.startLine = buffer.getLineOfOffset(this.start);
    this.endLine = buffer.getLineOfOffset(this.end);
  }
  return changed;
} //}}}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None