CloneSet1364


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17240.969class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11787
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/ASTBasedAnnotationElementDeclarationImpl.java
21740
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/ASTBasedMethodDeclarationImpl.java
Clone Instance
1
Line Count
17
Source Line
87
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/ASTBasedAnnotationElementDeclarationImpl.java

    public TypeMirror getReturnType()
    {
        final AnnotationTypeMemberDeclaration memberAstNode = getMemberAstNode();
        final Type retType = memberAstNode.getType();
        // some funny error case where the return type is missing but it's not a constructor.
        if (retType == null)
                return Factory.createErrorClassType(EMPTY_STRING);
        final ITypeBinding typeBinding = retType.resolveBinding();
        // This is most likely the reason that we end up with an ast based implementation.
        if (typeBinding == null) {
                return Factory.createErrorClassType(retType.toString());
        }
        else {
                final TypeMirror type = Factory.createTypeMirror(typeBinding, _env);
            if (retType == null)
                return Factory.createErrorClassType(retType.toString());
            return type;
        }
    }


Clone Instance
2
Line Count
17
Source Line
40
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/ASTBasedMethodDeclarationImpl.java

    public TypeMirror getReturnType()
    {
        final org.eclipse.jdt.core.dom.MethodDeclaration methodAstNode = getMethodAstNode();
        final Type retType = methodAstNode.getReturnType2();
        // some funny error case where the return type is missing but it's not a constructor.
        if (retType == null)
                return Factory.createErrorClassType(EMPTY_STRING);
        final ITypeBinding typeBinding = retType.resolveBinding();
        // This is most likely the reason that we end up with an ast based implementation.
        if (typeBinding == null) {
                return Factory.createErrorClassType(retType.toString());
        }
        else {
                final TypeMirror type = Factory.createTypeMirror(typeBinding, _env);
            if (retType == null)
                return Factory.createErrorClassType(retType.toString());
            return type;
        }
    }


Clone AbstractionParameter Count: 4Parameter Bindings

public TypeMirror getReturnType() {
  final [[#variable99169d80]]  [[#variable99169d40]]= [[#variable99168e60]]();
  final Type retType = [[#variable99169d40]]. [[#variable99169ce0]]();
  // some funny error case where the return type is missing but it's not a constructor.
  if (retType == null)
    return Factory.createErrorClassType(EMPTY_STRING);
  final ITypeBinding typeBinding = retType.resolveBinding();
  // This is most likely the reason that we end up with an ast based implementation.
  if (typeBinding == null) {
    return Factory.createErrorClassType(retType.toString());
  }
  else {
    final TypeMirror type = Factory.createTypeMirror(typeBinding, _env);
    if (retType == null)
      return Factory.createErrorClassType(retType.toString());
    return type;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#99169d80]]
org.eclipse.jdt.core.dom.MethodDeclaration 
12[[#99169d80]]
AnnotationTypeMemberDeclaration 
21[[#99169d40]]
methodAstNode 
22[[#99169d40]]
memberAstNode 
31[[#99168e60]]
getMethodAstNode 
32[[#99168e60]]
getMemberAstNode 
41[[#99169ce0]]
getReturnType2 
42[[#99169ce0]]
getType