CloneSet2449


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111276
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddUnimplementedConstructorsOperation.java
211234
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddUnimplementedMethodsOperation.java
Clone Instance
1
Line Count
11
Source Line
276
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddUnimplementedConstructorsOperation.java

        private ASTNode getNodeToInsertBefore(ListRewrite rewriter) {
                if (fInsertPos != -1) {
                        List members = rewriter.getOriginalList();
                        for (int i = 0; i < members.size(); i++) {
                                ASTNode curr = (ASTNode) members.get(i);
                                if (curr.getStartPosition() >= fInsertPos) {
                                        return curr;
                                }
                        }
                }
                return null;
        }


Clone Instance
2
Line Count
11
Source Line
234
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddUnimplementedMethodsOperation.java

        private ASTNode getNodeToInsertBefore(ListRewrite rewriter) {
                if (fInsertPos != -1) {
                        List members = rewriter.getOriginalList();
                        for (int i = 0; i < members.size(); i++) {
                                ASTNode curr = (ASTNode) members.get(i);
                                if (curr.getStartPosition() >= fInsertPos) {
                                        return curr;
                                }
                        }
                }
                return null;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private ASTNode getNodeToInsertBefore(ListRewrite rewriter) {
  if (fInsertPos != -1) {
    List members = rewriter.getOriginalList();
    for (int i = 0; i < members.size(); i++) {
      ASTNode curr = (ASTNode) members.get(i);
      if (curr.getStartPosition() >= fInsertPos) {
        return curr;
      }
    }
  }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None