CloneSet1770


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.993class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1864
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ASTNodeSearchUtil.java
28254
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ASTNodeSearchUtil.java
Clone Instance
1
Line Count
8
Source Line
64
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ASTNodeSearchUtil.java

        /** misses javadoc nodes */
        public static ASTNode[] getAstNodes(SearchMatch[] searchResults, CompilationUnit cuNode) {
                List result = new ArrayList(searchResults.length);
                for (int i = 0; i < searchResults.length; i++) {
                        ASTNode node = getAstNode(searchResults[i], cuNode);
                        if (node != null)
                                result.add(node);
                }
                return (ASTNode[]) result.toArray(new ASTNode[result.size()]);
        }


Clone Instance
2
Line Count
8
Source Line
254
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ASTNodeSearchUtil.java

        public static ASTNode[] findNodes(SearchMatch[] searchResults, CompilationUnit cuNode) {
                List result = new ArrayList(searchResults.length);
                for (int i = 0; i < searchResults.length; i++) {
                        ASTNode node = findNode(searchResults[i], cuNode);
                        if (node != null)
                                result.add(node);
                }
                return (ASTNode[]) result.toArray(new ASTNode[result.size()]);
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/** misses javadoc nodes */
public static ASTNode[]  [[#variable9bb24600]](SearchMatch[] searchResults, CompilationUnit cuNode) {
  List result = new ArrayList(searchResults.length);
  for (int i = 0; i < searchResults.length; i++) {
    ASTNode node = [[#variable9bb24680]](searchResults[i], cuNode);
    if (node != null)
      result.add(node);
  }
  return (ASTNode[]) result.toArray(new ASTNode[result.size()]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9bb24600]]
getAstNodes 
12[[#9bb24600]]
findNodes 
21[[#9bb24680]]
getAstNode 
22[[#9bb24680]]
findNode