Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 3 | 0.963 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 105 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodBinding.java |
2 | 14 | 131 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodBinding.java |
| ||||
public IAnnotationBinding[] getAnnotations() { org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding[] annotations = this.binding.getAnnotations(); int length; if (annotations == null || (length = annotations.length) == 0) return AnnotationBinding.NoAnnotations; IAnnotationBinding[] domInstances = new AnnotationBinding[length]; for (int i = 0; i < length; i++) { IAnnotationBinding annotationInstance = this.resolver.getAnnotationInstance(annotations[i]); if (annotationInstance == null) { return AnnotationBinding.NoAnnotations; } domInstances[i] = annotationInstance; } return domInstances; } |
| ||||
public IAnnotationBinding[] getParameterAnnotations(int index) { org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding[] annotations = this.binding.getParameterAnnotations(index); int length; if (annotations == null || (length = annotations.length) == 0) return AnnotationBinding.NoAnnotations; IAnnotationBinding[] domInstances = new AnnotationBinding[length]; for (int i = 0; i < length; i++) { IAnnotationBinding annotationInstance = this.resolver.getAnnotationInstance(annotations[i]); if (annotationInstance == null) { return AnnotationBinding.NoAnnotations; } domInstances[i] = annotationInstance; } return domInstances; } |
| |||
public IAnnotationBinding[] [[#variablebc332760]] [[#variablebc3326e0]]{ org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding[] annotations = this.binding. [[#variablebc332760]] [[#variablebc332660]]; int length; if (annotations == null || (length = annotations.length) == 0) return AnnotationBinding.NoAnnotations; IAnnotationBinding[] domInstances = new AnnotationBinding[length]; for (int i = 0; i < length; i++) { IAnnotationBinding annotationInstance = this.resolver.getAnnotationInstance(annotations[i]); if (annotationInstance == null) { return AnnotationBinding.NoAnnotations; } domInstances[i] = annotationInstance; } return domInstances; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bc332760]] | getAnnotations |
1 | 2 | [[#bc332760]] | getParameterAnnotations |
2 | 1 | [[#bc3326e0]] | () |
2 | 2 | [[#bc3326e0]] | (int index) |
3 | 1 | [[#bc332660]] | () |
3 | 2 | [[#bc332660]] | (index) |