CloneSet695


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15301.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115116
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java
215162
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java
315215
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java
Clone Instance
1
Line Count
15
Source Line
116
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java

                /*
                 * @see org.eclipse.jdt.internal.ui.text.JavaHeuristicScanner.StopCondition#nextPosition(int, boolean)
                 */
                public int nextPosition(int position, boolean forward) {
                        ITypedRegion partition = getPartition(position);
                        if (fPartition.equals(partition.getType()))
                                return super.nextPosition(position, forward);

                        if (forward) {
                                int end = partition.getOffset() + partition.getLength();
                                if (position < end)
                                        return end;
                        }
                        else   {
                                int offset = partition.getOffset();
                                if (position > offset)
                                        return offset - 1;
                        }
                        return super.nextPosition(position, forward);
                }


Clone Instance
2
Line Count
15
Source Line
162
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java

                /*
                 * @see org.eclipse.jdt.internal.ui.text.JavaHeuristicScanner.StopCondition#nextPosition(int, boolean)
                 */
                public int nextPosition(int position, boolean forward) {
                        ITypedRegion partition = getPartition(position);
                        if (fPartition.equals(partition.getType()))
                                return super.nextPosition(position, forward);

                        if (forward) {
                                int end = partition.getOffset() + partition.getLength();
                                if (position < end)
                                        return end;
                        }
                        else   {
                                int offset = partition.getOffset();
                                if (position > offset)
                                        return offset - 1;
                        }
                        return super.nextPosition(position, forward);
                }


Clone Instance
3
Line Count
15
Source Line
215
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java

                /*
                 * @see org.eclipse.jdt.internal.ui.text.JavaHeuristicScanner.StopCondition#nextPosition(int, boolean)
                 */
                public int nextPosition(int position, boolean forward) {
                        ITypedRegion partition = getPartition(position);
                        if (fPartition.equals(partition.getType()))
                                return super.nextPosition(position, forward);

                        if (forward) {
                                int end = partition.getOffset() + partition.getLength();
                                if (position < end)
                                        return end;
                        }
                        else   {
                                int offset = partition.getOffset();
                                if (position > offset)
                                        return offset - 1;
                        }
                        return super.nextPosition(position, forward);
                }


Clone AbstractionParameter Count: 0Parameter Bindings

/*
                 * @see org.eclipse.jdt.internal.ui.text.JavaHeuristicScanner.StopCondition#nextPosition(int, boolean)
                 */
public int nextPosition(int position, boolean forward) {
  ITypedRegion partition = getPartition(position);
  if (fPartition.equals(partition.getType()))
    return super.nextPosition(position, forward);
  if (forward) {
    int end = partition.getOffset() + partition.getLength();
    if (position < end)
      return end;
  }
  else {
    int offset = partition.getOffset();
    if (position > offset)
      return offset - 1;
  }
  return super.nextPosition(position, forward);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None