CloneSet3993


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8210.988class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18634
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnit.java
28653
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnit.java
Clone Instance
1
Line Count
8
Source Line
634
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnit.java

        /**
         * Return the index in the whole comments list {@link #getCommentList() }
         * of the first leading comments associated with the given node. 
         * 
         * @param node the node
         * @return 0-based index of first leading comment or -1 if node has no associated
         *      comment before its start position.
         * @since 3.2
         */
        public int firstLeadingCommentIndex(ASTNode node) {
                if (node == null) {
                        throw new IllegalArgumentException();
                }
                if (this.commentMapper == null || node.getAST() != getAST()) {
                        return -1;
                }
                return this.commentMapper.firstLeadingCommentIndex(node);
        }


Clone Instance
2
Line Count
8
Source Line
653
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnit.java

        /**
         * Return the index in the whole comments list {@link #getCommentList() }
         * of the last trailing comments associated with the given node. 
         * 
         * @param node the node
         * @return 0-based index of last trailing comment or -1 if node has no
         *      associated comment after its end position.
         * @since 3.2
         */
        public int lastTrailingCommentIndex(ASTNode node) {
                if (node == null) {
                        throw new IllegalArgumentException();
                }
                if (this.commentMapper == null || node.getAST() != getAST()) {
                        return -1;
                }
                return this.commentMapper.lastTrailingCommentIndex(node);
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Return the index in the whole comments list {@link #getCommentList() }
         * of the first leading comments associated with the given node. 
         * 
         * @param node the node
         * @return 0-based index of first leading comment or -1 if node has no associated
         *      comment before its start position.
         * @since 3.2
         */
/**
         * Return the index in the whole comments list {@link #getCommentList() }
         * of the last trailing comments associated with the given node. 
         * 
         * @param node the node
         * @return 0-based index of last trailing comment or -1 if node has no
         *      associated comment after its end position.
         * @since 3.2
         */
public int  [[#variable5933aac0]](ASTNode node) {
  if (node == null) {
    throw new IllegalArgumentException();
  }
  if (this.commentMapper == null || node.getAST() != getAST()) {
    return -1;
  }
  return this.commentMapper. [[#variable5933aac0]](node);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5933aac0]]
firstLeadingCommentIndex 
12[[#5933aac0]]
lastTrailingCommentIndex