CloneSet199


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
52210.965statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
152172
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java
252942
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
Clone Instance
1
Line Count
52
Source Line
172
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java

                if (node instanceof AbstractMethodDeclaration) {
                        AbstractMethodDeclaration method = (AbstractMethodDeclaration) node;
                        if (method.declarationSourceEnd == 0) {
                                element = element.add(method, 0);
                                lastCheckPoint = method.bodyStart;
                        }
                        else   {
                                element = element.add(method, 0);
                                lastCheckPoint = method.declarationSourceEnd + 1;
                        }
                        continue ;
                }
                if (node instanceof Initializer) {
                        Initializer initializer = (Initializer) node;
                        if (initializer.declarationSourceEnd == 0) {
                                element = element.add(initializer, 1);
                                lastCheckPoint = initializer.sourceStart;
                        }
                        else   {
                                element = element.add(initializer, 0);
                                lastCheckPoint = initializer.declarationSourceEnd + 1;
                        }
                        continue ;
                }
                if (node instanceof FieldDeclaration) {
                        FieldDeclaration field = (FieldDeclaration) node;
                        if (field.declarationSourceEnd == 0) {
                                element = element.add(field, 0);
                                if (field.initialization == null) {
                                        lastCheckPoint = field.sourceEnd + 1;
                                }
                                else   {
                                        lastCheckPoint = field.initialization.sourceEnd + 1;
                                }
                        }
                        else   {
                                element = element.add(field, 0);
                                lastCheckPoint = field.declarationSourceEnd + 1;
                        }
                        continue ;
                }
                if (node instanceof TypeDeclaration) {
                        TypeDeclaration type = (TypeDeclaration) node;
                        if (type.declarationSourceEnd == 0) {
                                element = element.add(type, 0);
                                lastCheckPoint = type.bodyStart;
                        }
                        else   {
                                element = element.add(type, 0);
                                lastCheckPoint = type.declarationSourceEnd + 1;
                        }
                        continue ;
                }
                if (node instanceof ImportReference) {
                        ImportReference importRef = (ImportReference) node;
                        element = element.add(importRef, 0);
                        lastCheckPoint = importRef.declarationSourceEnd + 1;
                }


Clone Instance
2
Line Count
52
Source Line
942
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

                if (node instanceof AbstractMethodDeclaration) {
                        AbstractMethodDeclaration method = (AbstractMethodDeclaration) node;
                        if (method.declarationSourceEnd == 0) {
                                element = element.add(method, 0);
                                this.lastCheckPoint = method.bodyStart;
                        }
                        else   {
                                element = element.add(method, 0);
                                this.lastCheckPoint = method.declarationSourceEnd + 1;
                        }
                        continue ;
                }
                if (node instanceof Initializer) {
                        Initializer initializer = (Initializer) node;
                        if (initializer.declarationSourceEnd == 0) {
                                element = element.add(initializer, 1);
                                this.lastCheckPoint = initializer.sourceStart;
                        }
                        else   {
                                element = element.add(initializer, 0);
                                this.lastCheckPoint = initializer.declarationSourceEnd + 1;
                        }
                        continue ;
                }
                if (node instanceof FieldDeclaration) {
                        FieldDeclaration field = (FieldDeclaration) node;
                        if (field.declarationSourceEnd == 0) {
                                element = element.add(field, 0);
                                if (field.initialization == null) {
                                        this.lastCheckPoint = field.sourceEnd + 1;
                                }
                                else   {
                                        this.lastCheckPoint = field.initialization.sourceEnd + 1;
                                }
                        }
                        else   {
                                element = element.add(field, 0);
                                this.lastCheckPoint = field.declarationSourceEnd + 1;
                        }
                        continue ;
                }
                if (node instanceof TypeDeclaration) {
                        TypeDeclaration type = (TypeDeclaration) node;
                        if (type.declarationSourceEnd == 0) {
                                element = element.add(type, 0);
                                this.lastCheckPoint = type.bodyStart;
                        }
                        else   {
                                element = element.add(type, 0);
                                this.lastCheckPoint = type.declarationSourceEnd + 1;
                        }
                        continue ;
                }
                if (node instanceof ImportReference) {
                        ImportReference importRef = (ImportReference) node;
                        element = element.add(importRef, 0);
                        this.lastCheckPoint = importRef.declarationSourceEnd + 1;
                }


Clone AbstractionParameter Count: 1Parameter Bindings

if (node instanceof AbstractMethodDeclaration) {
  AbstractMethodDeclaration method = (AbstractMethodDeclaration) node;
  if (method.declarationSourceEnd == 0) {
    element = element.add(method, 0);
     [[#variablec1607e60]]= method.bodyStart;
  }
  else {
    element = element.add(method, 0);
     [[#variablec1607e60]]= method.declarationSourceEnd + 1;
  }
  continue ;
}
if (node instanceof Initializer) {
  Initializer initializer = (Initializer) node;
  if (initializer.declarationSourceEnd == 0) {
    element = element.add(initializer, 1);
     [[#variablec1607e60]]= initializer.sourceStart;
  }
  else {
    element = element.add(initializer, 0);
     [[#variablec1607e60]]= initializer.declarationSourceEnd + 1;
  }
  continue ;
}
if (node instanceof FieldDeclaration) {
  FieldDeclaration field = (FieldDeclaration) node;
  if (field.declarationSourceEnd == 0) {
    element = element.add(field, 0);
    if (field.initialization == null) {
       [[#variablec1607e60]]= field.sourceEnd + 1;
    }
    else {
       [[#variablec1607e60]]= field.initialization.sourceEnd + 1;
    }
  }
  else {
    element = element.add(field, 0);
     [[#variablec1607e60]]= field.declarationSourceEnd + 1;
  }
  continue ;
}
if (node instanceof TypeDeclaration) {
  TypeDeclaration type = (TypeDeclaration) node;
  if (type.declarationSourceEnd == 0) {
    element = element.add(type, 0);
     [[#variablec1607e60]]= type.bodyStart;
  }
  else {
    element = element.add(type, 0);
     [[#variablec1607e60]]= type.declarationSourceEnd + 1;
  }
  continue ;
}
if (node instanceof ImportReference) {
  ImportReference importRef = (ImportReference) node;
  element = element.add(importRef, 0);
   [[#variablec1607e60]]= importRef.declarationSourceEnd + 1;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c1607e60]]
this.lastCheckPoint 
12[[#c1607e60]]
lastCheckPoint