CloneSet1124


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14230.963class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114105
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodBinding.java
214131
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodBinding.java
Clone Instance
1
Line Count
14
Source Line
105
Source File
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;
        }


Clone Instance
2
Line Count
14
Source Line
131
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodBinding.java

        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;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bc332760]]
getAnnotations 
12[[#bc332760]]
getParameterAnnotations 
21[[#bc3326e0]]
() 
22[[#bc3326e0]]
(int index) 
31[[#bc332660]]
() 
32[[#bc332660]]
(index)