| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 28 | 2 | 3 | 0.995 | switch_groups[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 28 | 171 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/AnnotationInfo.java |
| 2 | 28 | 215 | 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;
|
| ||||
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;
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b95df9e0]] | 34 |
| 1 | 2 | [[#b95df9e0]] | 38 |
| 2 | 1 | [[#b95dff60]] | JAVA_LANG_ANNOTATION_ELEMENTTYPE |
| 2 | 2 | [[#b95dff60]] | JAVA_LANG_ANNOTATION_RETENTIONPOLICY |
| 3 | 1 | [[#b84cc7e0]] | getTargetElementType |
| 3 | 2 | [[#b84cc7e0]] | getRetentionPolicy |