CloneSet5764


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5230.956class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15223
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/ListRewrite.java
25243
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/ListRewrite.java
Clone Instance
1
Line Count
5
Source Line
223
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/ListRewrite.java

        /**
         * Inserts the given node into the list at the start of the list.
         * Equivalent to <code>insertAt(node, 0, editGroup)</code>. 
         * 
         * @param node the node to insert
         * @param editGroup the edit group in which to collect the corresponding
         * text edits, or <code>null</code> if ungrouped
         * @throws IllegalArgumentException if the node is null, or if the node is not part
         * of this rewriter's AST, or if the inserted node is not a new node (or
     * placeholder), or if the described modification is otherwise invalid
     * (not a member of this node's original list)
     * @see #insertAt(ASTNode, int, TextEditGroup)
         */
        public void insertFirst(ASTNode node, TextEditGroup editGroup) {
                if (node == null) {
                        throw new IllegalArgumentException();
                }
                internalInsertAt(node, 0, false, editGroup);
        }


Clone Instance
2
Line Count
5
Source Line
243
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/ListRewrite.java

        /**
         * Inserts the given node into the list at the end of the list.
         * Equivalent to <code>insertAt(node, -1, editGroup)</code>. 
         * 
         * @param node the node to insert
         * @param editGroup the edit group in which to collect the corresponding
         * text edits, or <code>null</code> if ungrouped
         * @throws IllegalArgumentException if the node is null, or if the node is not part
         * of this rewriter's AST, or if the inserted node is not a new node (or
     * placeholder), or if the described modification is otherwise invalid
     * (not a member of this node's original list)
     * @see #insertAt(ASTNode, int, TextEditGroup)
         */
        public void insertLast(ASTNode node, TextEditGroup editGroup) {
                if (node == null) {
                        throw new IllegalArgumentException();
                }
                internalInsertAt(node, -1, true, editGroup);
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Inserts the given node into the list at the start of the list.
         * Equivalent to <code>insertAt(node, 0, editGroup)</code>. 
         * 
         * @param node the node to insert
         * @param editGroup the edit group in which to collect the corresponding
         * text edits, or <code>null</code> if ungrouped
         * @throws IllegalArgumentException if the node is null, or if the node is not part
         * of this rewriter's AST, or if the inserted node is not a new node (or
     * placeholder), or if the described modification is otherwise invalid
     * (not a member of this node's original list)
     * @see #insertAt(ASTNode, int, TextEditGroup)
         */
/**
         * Inserts the given node into the list at the end of the list.
         * Equivalent to <code>insertAt(node, -1, editGroup)</code>. 
         * 
         * @param node the node to insert
         * @param editGroup the edit group in which to collect the corresponding
         * text edits, or <code>null</code> if ungrouped
         * @throws IllegalArgumentException if the node is null, or if the node is not part
         * of this rewriter's AST, or if the inserted node is not a new node (or
     * placeholder), or if the described modification is otherwise invalid
     * (not a member of this node's original list)
     * @see #insertAt(ASTNode, int, TextEditGroup)
         */
public void [[#variable94d92400]](ASTNode node, TextEditGroup editGroup) {
  if (node == null) {
    throw new IllegalArgumentException();
  }
  internalInsertAt(node,  [[#variable94d923a0]],  [[#variable94d922a0]], editGroup);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#94d92400]]
insertFirst 
12[[#94d92400]]
insertLast 
21[[#94d923a0]]
0 
22[[#94d923a0]]
-1 
31[[#94d922a0]]
false 
32[[#94d922a0]]
true