CloneSet3444


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17230.974statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117352
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMNode.java
217676
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMNode.java
Clone Instance
1
Line Count
17
Source Line
352
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMNode.java

        if (child.getParent() != null) {
                throw new DOMException(Messages.dom_addChildWithParent);
        }
        /* NOTE: To test if the child is an ancestor of this node, we
         * need only test if the root of this node is the child (the child
         * is already a root since we have just guarenteed it has no parent).
         */
        if (child == getRoot()) {
                throw new DOMException(Messages.dom_addAncestorAsChild);
        }

        DOMNode node = (DOMNode) child;

        // if the child is not already part of this document, localize its contents
        // before adding it to the tree
        if (node.getDocument() != getDocument()) {
                node.localizeContents();
        }


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

        if (sibling.getParent() != null) {
                throw new DOMException(Messages.dom_addSiblingWithParent);
        }
        /* NOTE: To test if the sibling is an ancestor of this node, we
         * need only test if the root of this node is the child (the sibling
         * is already a root since we have just guaranteed it has no parent).
         */
        if (sibling == getRoot()) {
                throw new DOMException(Messages.dom_addAncestorAsSibling);
        }

        DOMNode node = (DOMNode) sibling;

        // if the sibling is not already part of this document, localize its contents
        // before inserting it into the tree
        if (node.getDocument() != getDocument()) {
                node.localizeContents();
        }


Clone AbstractionParameter Count: 3Parameter Bindings

if ( [[#variable99055000]].getParent() != null) {
  throw new DOMException(Messages. [[#variablea3570900]]);
}
/* NOTE: To test if the sibling is an ancestor of this node, we
         * need only test if the root of this node is the child (the sibling
         * is already a root since we have just guaranteed it has no parent).
         */
/* NOTE: To test if the child is an ancestor of this node, we
         * need only test if the root of this node is the child (the child
         * is already a root since we have just guarenteed it has no parent).
         */
if ( [[#variable99055000]]== getRoot()) {
  throw new DOMException(Messages. [[#variablea0520580]]);
}
DOMNode node = (DOMNode)  [[#variable99055000]];
// if the sibling is not already part of this document, localize its contents
// before inserting it into the tree
// if the child is not already part of this document, localize its contents
// before adding it to the tree
if (node.getDocument() != getDocument()) {
  node.localizeContents();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#99055000]]
sibling 
12[[#99055000]]
child 
21[[#a3570900]]
dom_addSiblingWithParent 
22[[#a3570900]]
dom_addChildWithParent 
31[[#a0520580]]
dom_addAncestorAsSibling 
32[[#a0520580]]
dom_addAncestorAsChild