CloneSet3885


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11210.989class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1111026
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
2111045
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
Clone Instance
1
Line Count
11
Source Line
1026
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java

                /**
                 * Returns the offset of the given Java element.
                 *
                 * @param element       Java element
                 * @return Offset of the given Java element
                 */
                private int getOffset(IJavaElement element) {
                        if (element instanceof ISourceReference) {
                                ISourceReference sr = (ISourceReference) element;
                                try {
                                        ISourceRange srcRange = sr.getSourceRange();
                                        if (srcRange != null)
                                                return srcRange.getOffset();
                                } catch (JavaModelException e) {
                                  }
                        }
                        return -1;
                }


Clone Instance
2
Line Count
11
Source Line
1045
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java

                /**
                 * Returns the length of the given Java element.
                 *
                 * @param element       Java element
                 * @return Length of the given Java element
                 */
                private int getLength(IJavaElement element) {
                        if (element instanceof ISourceReference) {
                                ISourceReference sr = (ISourceReference) element;
                                try {
                                        ISourceRange srcRange = sr.getSourceRange();
                                        if (srcRange != null)
                                                return srcRange.getLength();
                                } catch (JavaModelException e) {
                                  }
                        }
                        return -1;
                }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
                 * Returns the offset of the given Java element.
                 *
                 * @param element       Java element
                 * @return Offset of the given Java element
                 */
/**
                 * Returns the length of the given Java element.
                 *
                 * @param element       Java element
                 * @return Length of the given Java element
                 */
private int  [[#variable5d183a40]](IJavaElement element) {
  if (element instanceof ISourceReference) {
    ISourceReference sr = (ISourceReference) element;
    try {
      ISourceRange srcRange = sr.getSourceRange();
      if (srcRange != null)
        return srcRange. [[#variable5d183a40]]();
    }
    catch (JavaModelException e) {
    }
  }
  return -1;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5d183a40]]
getOffset 
12[[#5d183a40]]
getLength