CloneSet1463


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11198
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java
211210
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaDocContext.java
Clone Instance
1
Line Count
11
Source Line
98
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java

        /**
         * Returns the indentation level at the position of code completion.
         * 
         * @return the indentation level at the position of the code completion
         */
        private int getIndentation() {
                int start = getStart();
                IDocument document = getDocument();
                try {
                        IRegion region = document.getLineInformationOfOffset(start);
                        String lineContent = document.get(region.getOffset(), region.getLength());
                        ICompilationUnit compilationUnit = getCompilationUnit();
                        IJavaProject project = compilationUnit == null ? null:  compilationUnit.getJavaProject();
                        return Strings.computeIndentUnits(lineContent, project);
                } catch (BadLocationException e) {
                        return 0;
                  }
        }


Clone Instance
2
Line Count
11
Source Line
210
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaDocContext.java

        /**
         * Returns the indentation level at the position of code completion.
         * 
         * @return the indentation level at the position of the code completion
         */
        private int getIndentation() {
                int start = getStart();
                IDocument document = getDocument();
                try {
                        IRegion region = document.getLineInformationOfOffset(start);
                        String lineContent = document.get(region.getOffset(), region.getLength());
                        ICompilationUnit compilationUnit = getCompilationUnit();
                        IJavaProject project = compilationUnit == null ? null:  compilationUnit.getJavaProject();
                        return Strings.computeIndentUnits(lineContent, project);
                } catch (BadLocationException e) {
                        return 0;
                  }
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Returns the indentation level at the position of code completion.
         * 
         * @return the indentation level at the position of the code completion
         */
private int getIndentation() {
  int start = getStart();
  IDocument document = getDocument();
  try {
    IRegion region = document.getLineInformationOfOffset(start);
    String lineContent = document.get(region.getOffset(), region.getLength());
    ICompilationUnit compilationUnit = getCompilationUnit();
    IJavaProject project = compilationUnit == null ? null: compilationUnit.getJavaProject();
    return Strings.computeIndentUnits(lineContent, project);
  }
  catch (BadLocationException e) {
    return 0;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None