Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 3 | 0.987 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 5891 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java |
2 | 10 | 5903 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java |
| ||||
private boolean isRuntimeInvisible(Annotation annotation) { final TypeBinding annotationBinding = annotation.resolvedType; if (annotationBinding == null) { return false; } long metaTagBits = annotationBinding.getAnnotationTagBits(); // could be forward reference if ((metaTagBits& TagBits.AnnotationRetentionMASK) == 0) return true; // by default the retention is CLASS return (metaTagBits& TagBits.AnnotationRetentionMASK) == TagBits.AnnotationClassRetention; } |
| ||||
private boolean isRuntimeVisible(Annotation annotation) { final TypeBinding annotationBinding = annotation.resolvedType; if (annotationBinding == null) { return false; } long metaTagBits = annotationBinding.getAnnotationTagBits(); if ((metaTagBits& TagBits.AnnotationRetentionMASK) == 0) return false; // by default the retention is CLASS return (metaTagBits& TagBits.AnnotationRetentionMASK) == TagBits.AnnotationRuntimeRetention; } |
| |||
private boolean [[#variable56c28760]](Annotation annotation) { final TypeBinding annotationBinding = annotation.resolvedType; if (annotationBinding == null) { return false; } long metaTagBits = annotationBinding.getAnnotationTagBits(); // could be forward reference if ((metaTagBits&TagBits.AnnotationRetentionMASK) == 0) return [[#variable56c286e0]]; // by default the retention is CLASS return (metaTagBits&TagBits.AnnotationRetentionMASK) == TagBits. [[#variable56c28660]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#56c28760]] | isRuntimeInvisible |
1 | 2 | [[#56c28760]] | isRuntimeVisible |
2 | 1 | [[#56c286e0]] | true |
2 | 2 | [[#56c286e0]] | false |
3 | 1 | [[#56c28660]] | AnnotationClassRetention |
3 | 2 | [[#56c28660]] | AnnotationRuntimeRetention |