CloneSet1334


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9350.950class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19425
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java
29439
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java
310453
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java
Clone Instance
1
Line Count
9
Source Line
425
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java

/**
 * Find the matching parse node, answers null if nothing found
 */
public FieldDeclaration declarationOf(FieldBinding fieldBinding) {
        if (fieldBinding != null && this.fields != null) {
                for (int i = 0, max = this.fields.length; i < max; i++) {
                        FieldDeclaration fieldDecl;
                        if ((fieldDecl = this.fields[i]).binding == fieldBinding)
                                return fieldDecl;
                }
        }
        return null;
}


Clone Instance
2
Line Count
9
Source Line
439
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java

/**
 * Find the matching parse node, answers null if nothing found
 */
public TypeDeclaration declarationOf(MemberTypeBinding memberTypeBinding) {
        if (memberTypeBinding != null && this.memberTypes != null) {
                for (int i = 0, max = this.memberTypes.length; i < max; i++) {
                        TypeDeclaration memberTypeDecl;
                        if ((memberTypeDecl = this.memberTypes[i]).binding == memberTypeBinding)
                                return memberTypeDecl;
                }
        }
        return null;
}


Clone Instance
3
Line Count
10
Source Line
453
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java

/**
 * Find the matching parse node, answers null if nothing found
 */
public AbstractMethodDeclaration declarationOf(MethodBinding methodBinding) {
        if (methodBinding != null && this.methods != null) {
                for (int i = 0, max = this.methods.length; i < max; i++) {
                        AbstractMethodDeclaration methodDecl;

                        if ((methodDecl = this.methods[i]).binding == methodBinding)
                                return methodDecl;
                }
        }
        return null;
}


Clone AbstractionParameter Count: 5Parameter Bindings

/**
 * Find the matching parse node, answers null if nothing found
 */
public [[#variableb7fdfa00]] declarationOf( [[#variableb7fdf980]]  [[#variableb7fdf900]]) {
  if ( [[#variableb7fdf900]]!= null && this. [[#variableb7fdf880]]!= null) {
    for (int i = 0, max = this. [[#variableb7fdf880]].length; i < max; i++) {
       [[#variableb7fdfa00]]  [[#variableb7fdf800]];
      if (( [[#variableb7fdf800]]= this. [[#variableb7fdf880]][i]).binding == [[#variableb7fdf900]])
        return [[#variableb7fdf800]];
    }
  }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b7fdfa00]]
FieldDeclaration 
12[[#b7fdfa00]]
TypeDeclaration 
13[[#b7fdfa00]]
AbstractMethodDeclaration 
21[[#b7fdf980]]
FieldBinding 
22[[#b7fdf980]]
MemberTypeBinding 
23[[#b7fdf980]]
MethodBinding 
31[[#b7fdf900]]
fieldBinding 
32[[#b7fdf900]]
memberTypeBinding 
33[[#b7fdf900]]
methodBinding 
41[[#b7fdf880]]
fields 
42[[#b7fdf880]]
memberTypes 
43[[#b7fdf880]]
methods 
51[[#b7fdf800]]
fieldDecl 
52[[#b7fdf800]]
memberTypeDecl 
53[[#b7fdf800]]
methodDecl