CloneSet946


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14210.994class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114334
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddImportsOperation.java
21459
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/TypeInfoUtil.java
Clone Instance
1
Line Count
14
Source Line
334
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddImportsOperation.java

        private int getSearchForConstant(int typeKinds) {
                final int CLASSES = SimilarElementsRequestor.CLASSES;
                final int INTERFACES = SimilarElementsRequestor.INTERFACES;
                final int ENUMS = SimilarElementsRequestor.ENUMS;
                final int ANNOTATIONS = SimilarElementsRequestor.ANNOTATIONS;

                switch (typeKinds&  (CLASSES|  INTERFACES|  ENUMS|  ANNOTATIONS)) {
                        case CLASSES: return IJavaSearchConstants.CLASS;
                        case INTERFACES: return IJavaSearchConstants.INTERFACE;
                        case ENUMS: return IJavaSearchConstants.ENUM;
                        case ANNOTATIONS: return IJavaSearchConstants.ANNOTATION_TYPE;
                        case CLASSES|  INTERFACES: return IJavaSearchConstants.CLASS_AND_INTERFACE;
                        case CLASSES|  ENUMS: return IJavaSearchConstants.CLASS_AND_ENUM;
                        default: return IJavaSearchConstants.TYPE;
                      }
        }


Clone Instance
2
Line Count
14
Source Line
59
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/TypeInfoUtil.java

        private static int getSearchForConstant(int typeKinds) {
                final int CLASSES = SimilarElementsRequestor.CLASSES;
                final int INTERFACES = SimilarElementsRequestor.INTERFACES;
                final int ENUMS = SimilarElementsRequestor.ENUMS;
                final int ANNOTATIONS = SimilarElementsRequestor.ANNOTATIONS;

                switch (typeKinds&  (CLASSES|  INTERFACES|  ENUMS|  ANNOTATIONS)) {
                        case CLASSES: return IJavaSearchConstants.CLASS;
                        case INTERFACES: return IJavaSearchConstants.INTERFACE;
                        case ENUMS: return IJavaSearchConstants.ENUM;
                        case ANNOTATIONS: return IJavaSearchConstants.ANNOTATION_TYPE;
                        case CLASSES|  INTERFACES: return IJavaSearchConstants.CLASS_AND_INTERFACE;
                        case CLASSES|  ENUMS: return IJavaSearchConstants.CLASS_AND_ENUM;
                        default: return IJavaSearchConstants.TYPE;
                      }
        }


Clone AbstractionParameter Count: 1Parameter Bindings

 [[#variable7624e2e0]]int getSearchForConstant(int typeKinds) {
  final int CLASSES = SimilarElementsRequestor.CLASSES;
  final int INTERFACES = SimilarElementsRequestor.INTERFACES;
  final int ENUMS = SimilarElementsRequestor.ENUMS;
  final int ANNOTATIONS = SimilarElementsRequestor.ANNOTATIONS;
  switch (typeKinds&(CLASSES|INTERFACES|ENUMS|ANNOTATIONS)) {
    case CLASSES:
      return IJavaSearchConstants.CLASS;
    case INTERFACES:
      return IJavaSearchConstants.INTERFACE;
    case ENUMS:
      return IJavaSearchConstants.ENUM;
    case ANNOTATIONS:
      return IJavaSearchConstants.ANNOTATION_TYPE;
    case CLASSES|INTERFACES:
      return IJavaSearchConstants.CLASS_AND_INTERFACE;
    case CLASSES|ENUMS:
      return IJavaSearchConstants.CLASS_AND_ENUM;
    default:
      return IJavaSearchConstants.TYPE;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#7624e2e0]]
private static 
12[[#7624e2e0]]
private