CloneSet2386


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111469
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMField.java
211802
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMNode.java
Clone Instance
1
Line Count
11
Source Line
469
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMField.java

                          {
                // this node's end position includes all of the characters up
                // to the end of the enclosing node
                DOMNode parent = (DOMNode) getParent();
                if (parent == null || parent instanceof DOMCompilationUnit) {
                        setSourceRangeEnd(fDocument.length - 1);
                }
                else   {
                        // parent is a type
                        int temp = ((DOMType) parent).getCloseBodyPosition() - 1;
                        setSourceRangeEnd(temp);
                        fInsertionPosition = Math.max(finder.getLineStart(temp + 1), getEndPosition());
                }
                          }


Clone Instance
2
Line Count
11
Source Line
802
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMNode.java

                          {
                // this node's end position includes all of the characters up
                // to the end of the enclosing node
                DOMNode parent = (DOMNode) getParent();
                if (parent == null || parent instanceof DOMCompilationUnit) {
                        setSourceRangeEnd(fDocument.length - 1);
                }
                else   {
                        // parent is a type
                        int temp = ((DOMType) parent).getCloseBodyPosition() - 1;
                        setSourceRangeEnd(temp);
                        fInsertionPosition = Math.max(finder.getLineStart(temp + 1), getEndPosition());
                }
                          }


Clone AbstractionParameter Count: 0Parameter Bindings

{
  // this node's end position includes all of the characters up
  // to the end of the enclosing node
  DOMNode parent = (DOMNode) getParent();
  if (parent == null || parent instanceof DOMCompilationUnit) {
    setSourceRangeEnd(fDocument.length - 1);
  }
  else {
    // parent is a type
    int temp = ((DOMType) parent).getCloseBodyPosition() - 1;
    setSourceRangeEnd(temp);
    fInsertionPosition = Math.max(finder.getLineStart(temp + 1), getEndPosition());
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None