CloneSet2241


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10260.954class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110144
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/TypeDeclarationImpl.java
210156
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/TypeDeclarationImpl.java
Clone Instance
1
Line Count
10
Source Line
144
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/TypeDeclarationImpl.java

    public Collection<TypeDeclaration> getNestedTypes()
    {
        final ITypeBinding[] memberTypes = getDeclarationBinding().getDeclaredTypes();
        final List<TypeDeclaration> results = new ArrayList<TypeDeclaration>(memberTypes.length);
        for (ITypeBinding type:  memberTypes) {
            Declaration mirrorDecl = Factory.createReferenceType(type, _env);
            if (mirrorDecl != null)
                results.add((TypeDeclaration) mirrorDecl);
        }
        return results;
    }


Clone Instance
2
Line Count
10
Source Line
156
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/TypeDeclarationImpl.java

    public Collection<TypeParameterDeclaration> getFormalTypeParameters()
    {
        final ITypeBinding[] typeParams = getDeclarationBinding().getTypeParameters();
        final List<TypeParameterDeclaration> results = new ArrayList<TypeParameterDeclaration>(typeParams.length);
        for (ITypeBinding typeParam:  typeParams) {
            Declaration mirrorDecl = Factory.createDeclaration(typeParam, _env);
            if (mirrorDecl != null)
                results.add( (TypeParameterDeclaration) mirrorDecl);
        }
        return results;
    }


Clone AbstractionParameter Count: 6Parameter Bindings

public Collection< [[#variable98ec5bc0]]>  [[#variable98ec5b40]]() {
  final ITypeBinding[]  [[#variable98ec5a80]]= getDeclarationBinding(). [[#variable98ec5a20]]();
  final List< [[#variable98ec5bc0]]> results = new ArrayList< [[#variable98ec5bc0]]>( [[#variable98ec5a80]].length);
  for (ITypeBinding  [[#variable98ec59c0]]: [[#variable98ec5a80]]) {
    Declaration mirrorDecl = Factory. [[#variable98ec58e0]]( [[#variable98ec59c0]], _env);
    if (mirrorDecl != null)
      results.add(( [[#variable98ec5bc0]]) mirrorDecl);
  }
  return results;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#98ec5bc0]]
TypeDeclaration 
12[[#98ec5bc0]]
TypeParameterDeclaration 
21[[#98ec5b40]]
getNestedTypes 
22[[#98ec5b40]]
getFormalTypeParameters 
31[[#98ec5a80]]
memberTypes 
32[[#98ec5a80]]
typeParams 
41[[#98ec5a20]]
getDeclaredTypes 
42[[#98ec5a20]]
getTypeParameters 
51[[#98ec59c0]]
type 
52[[#98ec59c0]]
typeParam 
61[[#98ec58e0]]
createReferenceType 
62[[#98ec58e0]]
createDeclaration