CloneSet1269


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14330.963class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114132
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/AnnotationValueImpl.java
214149
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/AnnotationValueImpl.java
314166
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/AnnotationValueImpl.java
Clone Instance
1
Line Count
14
Source Line
132
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/AnnotationValueImpl.java

        CompilationUnit getCompilationUnit()
        {
                final MirrorKind kind = _parent.kind();
                switch (kind) {

                case ANNOTATION_MIRROR:
                        return ((AnnotationMirrorImpl) _parent).getCompilationUnit();
                case ANNOTATION_ELEMENT:
                        if (((EclipseDeclarationImpl) _parent).isBindingBased())
                                return ((AnnotationElementDeclarationImpl) _parent).getCompilationUnit();
                        else
                                return ((ASTBasedAnnotationElementDeclarationImpl) _parent).getCompilationUnit();
                default:
                        throw new IllegalStateException(); // should never reach this point.
              }
        }


Clone Instance
2
Line Count
14
Source Line
149
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/AnnotationValueImpl.java

        public boolean isFromSource()
        {
                final MirrorKind kind = _parent.kind();
                switch (kind) {

                case ANNOTATION_MIRROR:
                        return ((AnnotationMirrorImpl) _parent).isFromSource();
                case ANNOTATION_ELEMENT:
                        if (((EclipseDeclarationImpl) _parent).isBindingBased())
                                return ((AnnotationElementDeclarationImpl) _parent).isFromSource();
                        else
                                return ((ASTBasedAnnotationElementDeclarationImpl) _parent).isFromSource();
                default:
                        throw new IllegalStateException(); // should never reach this point.
              }
        }


Clone Instance
3
Line Count
14
Source Line
166
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/AnnotationValueImpl.java

        public IFile getResource()
        {
                final MirrorKind kind = _parent.kind();
                switch (kind) {

                case ANNOTATION_MIRROR:
                        return ((AnnotationMirrorImpl) _parent).getResource();
                case ANNOTATION_ELEMENT:
                        if (((EclipseDeclarationImpl) _parent).isBindingBased())
                                return ((AnnotationElementDeclarationImpl) _parent).getResource();
                        else
                                return ((ASTBasedAnnotationElementDeclarationImpl) _parent).getResource();
                default:
                        throw new IllegalStateException(); // should never reach this point.
              }
        }


Clone AbstractionParameter Count: 3Parameter Bindings

 [[#variable993d9460]] [[#variable993d9400]]  [[#variable993d9380]]() {
  final MirrorKind kind = _parent.kind();
  switch (kind) {
    case ANNOTATION_MIRROR:
      return ((AnnotationMirrorImpl) _parent). [[#variable993d9380]]();
    case ANNOTATION_ELEMENT:
      if (((EclipseDeclarationImpl) _parent).isBindingBased())
        return ((AnnotationElementDeclarationImpl) _parent). [[#variable993d9380]]();
      else
        return ((ASTBasedAnnotationElementDeclarationImpl) _parent). [[#variable993d9380]]();
    default:
      throw new IllegalStateException(); // should never reach this point.
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#993d9460]]
12[[#993d9460]]
public 
13[[#993d9460]]
public 
21[[#993d9400]]
CompilationUnit 
22[[#993d9400]]
boolean 
23[[#993d9400]]
IFile 
31[[#993d9380]]
getCompilationUnit 
32[[#993d9380]]
isFromSource 
33[[#993d9380]]
getResource