CloneSet1158


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17250.965class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117947
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java
217977
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java
Clone Instance
1
Line Count
17
Source Line
947
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java

                        public boolean visit(ConstructorDeclaration constructorDeclaration, ClassScope scope) {
                                if (constructorDeclaration.selector == assistIdentifier) {
                                        if (constructorDeclaration.binding != null) {
                                                throw new SelectionNodeFound(constructorDeclaration.binding);
                                        }
                                        else   {
                                                if (constructorDeclaration.scope != null) {
                                                        throw new SelectionNodeFound(new MethodBinding(constructorDeclaration.modifiers, constructorDeclaration.selector, null, null, null, constructorDeclaration.scope.referenceType().binding));
                                                }
                                        }
                                }
                                return true;
                        }

                        public boolean visit(FieldDeclaration fieldDeclaration, MethodScope scope) {
                                if (fieldDeclaration.name == assistIdentifier) {
                                        throw new SelectionNodeFound(fieldDeclaration.binding);
                                }
                                return true;
                        }


Clone Instance
2
Line Count
17
Source Line
977
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java

                        public boolean visit(MethodDeclaration methodDeclaration, ClassScope scope) {
                                if (methodDeclaration.selector == assistIdentifier) {
                                        if (methodDeclaration.binding != null) {
                                                throw new SelectionNodeFound(methodDeclaration.binding);
                                        }
                                        else   {
                                                if (methodDeclaration.scope != null) {
                                                        throw new SelectionNodeFound(new MethodBinding(methodDeclaration.modifiers, methodDeclaration.selector, null, null, null, methodDeclaration.scope.referenceType().binding));
                                                }
                                        }
                                }
                                return true;
                        }

                        public boolean visit(TypeDeclaration typeDeclaration, CompilationUnitScope scope) {
                                if (typeDeclaration.name == assistIdentifier) {
                                        throw new SelectionNodeFound(typeDeclaration.binding);
                                }
                                return true;
                        }


Clone AbstractionParameter Count: 5Parameter Bindings

public boolean visit( [[#variableb5dbbfc0]]  [[#variableb5dbbf80]], ClassScope scope) {
  if ( [[#variableb5dbbf80]].selector == assistIdentifier) {
    if ( [[#variableb5dbbf80]].binding != null) {
      throw new SelectionNodeFound( [[#variableb5dbbf80]].binding);
    }
    else {
      if ( [[#variableb5dbbf80]].scope != null) {
        throw new SelectionNodeFound(new MethodBinding( [[#variableb5dbbf80]].modifiers,  [[#variableb5dbbf80]].selector, null, null, null,  [[#variableb5dbbf80]].scope.referenceType().binding));
      }
    }
  }
  return true;
}

public boolean visit( [[#variableb5dbbf20]]  [[#variableb5dbbee0]], [[#variableb5dbbec0]] scope) {
  if ( [[#variableb5dbbee0]].name == assistIdentifier) {
    throw new SelectionNodeFound( [[#variableb5dbbee0]].binding);
  }
  return true;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b5dbbfc0]]
MethodDeclaration 
12[[#b5dbbfc0]]
ConstructorDeclaration 
21[[#b5dbbf80]]
methodDeclaration 
22[[#b5dbbf80]]
constructorDeclaration 
31[[#b5dbbf20]]
TypeDeclaration 
32[[#b5dbbf20]]
FieldDeclaration 
41[[#b5dbbee0]]
typeDeclaration 
42[[#b5dbbee0]]
fieldDeclaration 
51[[#b5dbbec0]]
CompilationUnitScope 
52[[#b5dbbec0]]
MethodScope