CloneSet1637


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13220.988executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1133591
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
2133606
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
Clone Instance
1
Line Count
13
Source Line
3591
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

                                                        {
                        Initializer initializer = (Initializer) currentNode;
                        while ( !(currentNode instanceof AbstractTypeDeclaration)) {
                                currentNode = currentNode.getParent();
                        }
                        if (currentNode instanceof TypeDeclaration ||
                                   currentNode instanceof EnumDeclaration ||
                                   currentNode instanceof AnnotationTypeDeclaration) {
                                org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDecl = (org.eclipse.jdt.internal.compiler.ast.TypeDeclaration) this.ast.getBindingResolver().getCorrespondingNode(currentNode);
                                if ((initializer.getModifiers()&  Modifier.STATIC) != 0) {
                                        return typeDecl.staticInitializerScope;
                                }
                                else   {
                                        return typeDecl.initializerScope;
                                }
                        }
                                                        }


Clone Instance
2
Line Count
13
Source Line
3606
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

                                                                    {
                        FieldDeclaration fieldDeclaration = (FieldDeclaration) currentNode;
                        while ( !(currentNode instanceof AbstractTypeDeclaration)) {
                                currentNode = currentNode.getParent();
                        }
                        if (currentNode instanceof TypeDeclaration ||
                                           currentNode instanceof EnumDeclaration ||
                                           currentNode instanceof AnnotationTypeDeclaration) {
                                org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDecl = (org.eclipse.jdt.internal.compiler.ast.TypeDeclaration) this.ast.getBindingResolver().getCorrespondingNode(currentNode);
                                if ((fieldDeclaration.getModifiers()&  Modifier.STATIC) != 0) {
                                        return typeDecl.staticInitializerScope;
                                }
                                else   {
                                        return typeDecl.initializerScope;
                                }
                        }
                                                                    }


Clone AbstractionParameter Count: 2Parameter Bindings

{
   [[#variable91b84360]]  [[#variable5b568020]]= ( [[#variable91b84360]]) currentNode;
  while ( !(currentNode instanceof AbstractTypeDeclaration)) {
    currentNode = currentNode.getParent();
  }
  if (currentNode instanceof TypeDeclaration || currentNode instanceof EnumDeclaration || currentNode instanceof AnnotationTypeDeclaration) {
    org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDecl = (org.eclipse.jdt.internal.compiler.ast.TypeDeclaration) this.ast.getBindingResolver().getCorrespondingNode(currentNode);
    if (( [[#variable5b568020]].getModifiers()&Modifier.STATIC) != 0) {
      return typeDecl.staticInitializerScope;
    }
    else {
      return typeDecl.initializerScope;
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#91b84360]]
FieldDeclaration 
12[[#91b84360]]
Initializer 
21[[#5b568020]]
fieldDeclaration 
22[[#5b568020]]
initializer