CloneSet760


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25201.000statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
125391
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/folding/DefaultJavaFoldingStructureProvider.java
224523
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/folding/DefaultJavaFoldingStructureProvider.java
Clone Instance
1
Line Count
25
Source Line
391
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/folding/DefaultJavaFoldingStructureProvider.java

                        IRegion preRegion;
                        if (firstLine < captionLine) {
//                              preRegion= new Region(offset + prefixEnd, contentStart - prefixEnd);
                                int preOffset = document.getLineOffset(firstLine);
                                IRegion preEndLineInfo = document.getLineInformation(captionLine);
                                int preEnd = preEndLineInfo.getOffset();
                                preRegion = new Region(preOffset, preEnd - preOffset);
                        }
                        else   {
                                preRegion = null;
                        }
                        if (captionLine < lastLine) {
                                int postOffset = document.getLineOffset(captionLine + 1);
                                IRegion postRegion = new Region(postOffset, offset + length - postOffset);

                                if (preRegion == null)
                                        return new IRegion[] {
                                                               postRegion
                                                             };
                                return new IRegion[] {
                                                       preRegion, postRegion
                                                     };
                        }
                        if (preRegion != null)
                                return new IRegion[] {
                                                       preRegion
                                                     };
                        return null;


Clone Instance
2
Line Count
24
Source Line
523
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/folding/DefaultJavaFoldingStructureProvider.java

                        IRegion preRegion;
                        if (firstLine < captionLine) {
                                int preOffset = document.getLineOffset(firstLine);
                                IRegion preEndLineInfo = document.getLineInformation(captionLine);
                                int preEnd = preEndLineInfo.getOffset();
                                preRegion = new Region(preOffset, preEnd - preOffset);
                        }
                        else   {
                                preRegion = null;
                        }
                        if (captionLine < lastLine) {
                                int postOffset = document.getLineOffset(captionLine + 1);
                                IRegion postRegion = new Region(postOffset, offset + length - postOffset);

                                if (preRegion == null)
                                        return new IRegion[] {
                                                               postRegion
                                                             };
                                return new IRegion[] {
                                                       preRegion, postRegion
                                                     };
                        }
                        if (preRegion != null)
                                return new IRegion[] {
                                                       preRegion
                                                     };
                        return null;


Clone AbstractionParameter Count: 0Parameter Bindings

IRegion preRegion;
if (firstLine < captionLine) {
  //                              preRegion= new Region(offset + prefixEnd, contentStart - prefixEnd);
  int preOffset = document.getLineOffset(firstLine);
  IRegion preEndLineInfo = document.getLineInformation(captionLine);
  int preEnd = preEndLineInfo.getOffset();
  preRegion = new Region(preOffset, preEnd - preOffset);
}
else {
  preRegion = null;
}
if (captionLine < lastLine) {
  int postOffset = document.getLineOffset(captionLine + 1);
  IRegion postRegion = new Region(postOffset, offset + length - postOffset);
  if (preRegion == null)
    return new IRegion[] {
                           postRegion
                         };
  return new IRegion[] {
                         preRegion,
                         postRegion
                       };
}
if (preRegion != null)
  return new IRegion[] {
                         preRegion
                       };
return null;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None