CloneSet1515


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14201.000statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114287
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDISourceViewer.java
214554
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaSourceViewer.java
Clone Instance
1
Line Count
14
Source Line
287
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDISourceViewer.java

                for (int i = 0; i < size; i++) {
                        ITypedRegion segment = (ITypedRegion) segmentation.get(i);

                        if (i == 0)
                                segments[j++ ] = 0;

                        int offset = segment.getOffset() - lineOffset;
                        if (offset > segments[j - 1])
                                segments[j++ ] = offset;

                        if (offset + segment.getLength() >= line.getLength())
                                break;

                        segments[j++ ] = offset + segment.getLength();
                }


Clone Instance
2
Line Count
14
Source Line
554
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaSourceViewer.java

                for (int i = 0; i < size; i++) {
                        ITypedRegion segment = (ITypedRegion) segmentation.get(i);

                        if (i == 0)
                                segments[j++ ] = 0;

                        int offset = segment.getOffset() - lineOffset;
                        if (offset > segments[j - 1])
                                segments[j++ ] = offset;

                        if (offset + segment.getLength() >= line.getLength())
                                break;

                        segments[j++ ] = offset + segment.getLength();
                }


Clone AbstractionParameter Count: 0Parameter Bindings

for (int i = 0; i < size; i++) {
  ITypedRegion segment = (ITypedRegion) segmentation.get(i);
  if (i == 0)
    segments[j++ ] = 0;
  int offset = segment.getOffset() - lineOffset;
  if (offset > segments[j - 1])
    segments[j++ ] = offset;
  if (offset + segment.getLength() >= line.getLength())
    break;
  segments[j++ ] = offset + segment.getLength();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None