CloneSet2553


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13240.962class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113124
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/PackageDeclarationImpl.java
213139
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/PackageDeclarationImpl.java
Clone Instance
1
Line Count
13
Source Line
124
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/PackageDeclarationImpl.java

    public Collection<EnumDeclaration> getEnums() {
        List<IType> types = getTypesInPackage(_pkgFragments);
                List<EnumDeclaration> enums = new ArrayList<EnumDeclaration>();
                for (IType type:  types) {
                        try {
                                if (type.isEnum()) {
                                        enums.add((EnumDeclaration) _env.getTypeDeclaration(type));
                                }
                        }
                        catch (JavaModelException ex) {
                        }                                // No longer exists, don't return it
                }
                return enums;
    }


Clone Instance
2
Line Count
13
Source Line
139
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/PackageDeclarationImpl.java

    public Collection<InterfaceDeclaration> getInterfaces() {
        List<IType> types = getTypesInPackage(_pkgFragments);
                List<InterfaceDeclaration> interfaces = new ArrayList<InterfaceDeclaration>();
                for (IType type:  types) {
                        try {
                                if (type.isInterface()) {
                                        interfaces.add((InterfaceDeclaration) _env.getTypeDeclaration(type));
                                }
                        }
                        catch (JavaModelException ex) {
                        }                                // No longer exists, don't return it
                }
                return interfaces;
    }


Clone AbstractionParameter Count: 4Parameter Bindings

public Collection< [[#variable55e1fbc0]]>  [[#variable55e1fc00]]() {
  List<IType> types = getTypesInPackage(_pkgFragments);
  List< [[#variable55e1fbc0]]>  [[#variable55e1f720]]= new ArrayList< [[#variable55e1fbc0]]>();
  for (IType type: types) {
    try {
      if (type. [[#variable55e1fc60]]()) {
         [[#variable55e1f720]].add(( [[#variable55e1fbc0]]) _env.getTypeDeclaration(type));
      }
    }
    catch (JavaModelException ex) {
    } // No longer exists, don't return it
  }
  return [[#variable55e1f720]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#55e1fbc0]]
EnumDeclaration 
12[[#55e1fbc0]]
InterfaceDeclaration 
21[[#55e1fc00]]
getEnums 
22[[#55e1fc00]]
getInterfaces 
31[[#55e1f720]]
enums 
32[[#55e1f720]]
interfaces 
41[[#55e1fc60]]
isEnum 
42[[#55e1fc60]]
isInterface