CloneSet497


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
28230.995switch_groups[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
128171
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/AnnotationInfo.java
228215
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/AnnotationInfo.java
Clone Instance
1
Line Count
28
Source Line
171
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/AnnotationInfo.java

                case 'e':
                        int utf8Offset = this.constantPoolOffsets[u2At(currentOffset)] - structOffset;
                        char[] typeName = utf8At(utf8Offset + 3, u2At(utf8Offset + 1));
                        currentOffset += 2;
                        if (typeName.length == 38 && CharOperation.equals(typeName, ConstantPool.JAVA_LANG_ANNOTATION_RETENTIONPOLICY)) {
                                utf8Offset = this.constantPoolOffsets[u2At(currentOffset)] - structOffset;
                                char[] constName = utf8At(utf8Offset + 3, u2At(utf8Offset + 1));
                                this.standardAnnotationTagBits |= Annotation.getRetentionPolicy(constName);
                        }
                        currentOffset += 2;
                        break;
                case 'B':
                case 'C':
                case 'D':
                case 'F':
                case 'I':
                case 'J':
                case 'S':
                case 'Z':
                case 's':
                case 'c':
                        currentOffset += 2;
                        break;
                case '@':
                        // none of the supported standard annotation are in the nested
                        // level.
                        currentOffset = scanAnnotation(currentOffset, false, false);
                        break;


Clone Instance
2
Line Count
28
Source Line
215
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/AnnotationInfo.java

                case 'e':
                        int utf8Offset = this.constantPoolOffsets[u2At(currentOffset)] - structOffset;
                        char[] typeName = utf8At(utf8Offset + 3, u2At(utf8Offset + 1));
                        currentOffset += 2;
                        if (typeName.length == 34 && CharOperation.equals(typeName, ConstantPool.JAVA_LANG_ANNOTATION_ELEMENTTYPE)) {
                                utf8Offset = this.constantPoolOffsets[u2At(currentOffset)] - structOffset;
                                char[] constName = utf8At(utf8Offset + 3, u2At(utf8Offset + 1));
                                this.standardAnnotationTagBits |= Annotation.getTargetElementType(constName);
                        }
                        currentOffset += 2;
                        break;
                case 'B':
                case 'C':
                case 'D':
                case 'F':
                case 'I':
                case 'J':
                case 'S':
                case 'Z':
                case 's':
                case 'c':
                        currentOffset += 2;
                        break;
                case '@':
                        // none of the supported standard annotation are in the nested
                        // level.
                        currentOffset = scanAnnotation(currentOffset, false, false);
                        break;


Clone AbstractionParameter Count: 3Parameter Bindings

case 'e':
  int utf8Offset = this.constantPoolOffsets[u2At(currentOffset)] - structOffset;
  char[] typeName = utf8At(utf8Offset + 3, u2At(utf8Offset + 1));
  currentOffset += 2;
  if (typeName.length == [[#variableb95df9e0]]&& CharOperation.equals(typeName, ConstantPool. [[#variableb95dff60]])) {
    utf8Offset = this.constantPoolOffsets[u2At(currentOffset)] - structOffset;
    char[] constName = utf8At(utf8Offset + 3, u2At(utf8Offset + 1));
    this.standardAnnotationTagBits |= Annotation. [[#variableb84cc7e0]](constName);
  }
  currentOffset += 2;
  break;
case 'B':
case 'C':
case 'D':
case 'F':
case 'I':
case 'J':
case 'S':
case 'Z':
case 's':
case 'c':
  currentOffset += 2;
  break;
case '@':
  // none of the supported standard annotation are in the nested
  // level.
  currentOffset = scanAnnotation(currentOffset, false, false);
  break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b95df9e0]]
34 
12[[#b95df9e0]]
38 
21[[#b95dff60]]
JAVA_LANG_ANNOTATION_ELEMENTTYPE 
22[[#b95dff60]]
JAVA_LANG_ANNOTATION_RETENTIONPOLICY 
31[[#b84cc7e0]]
getTargetElementType 
32[[#b84cc7e0]]
getRetentionPolicy