Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 1 | 0.994 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 334 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddImportsOperation.java |
2 | 14 | 59 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/TypeInfoUtil.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; } } |
| ||||
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; } } |
| |||
[[#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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#7624e2e0]] | private static |
1 | 2 | [[#7624e2e0]] | private |