CloneSet1229


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17310.996statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11784
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/ClassDeclarationImpl.java
217109
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/TypeDeclarationImpl.java
317289
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/TypeDeclarationImpl.java
Clone Instance
1
Line Count
17
Source Line
84
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/ClassDeclarationImpl.java

                final ASTNode node =
                        _env.getASTNodeForBinding(typeBinding);
                if (node != null) {
                        switch (node.getNodeType()) {

                        case ASTNode.TYPE_DECLARATION:
                        case ASTNode.ANNOTATION_TYPE_DECLARATION:
                        case ASTNode.ENUM_DECLARATION:
                                AbstractTypeDeclaration typeDecl =
                                        (AbstractTypeDeclaration) node;
                                // built the ast based methods first.
                                getASTConstructor(typeDecl, results);
                                break;
                        default:
                                // the ast node for a type binding should be a AbstractTypeDeclaration.
                                throw new IllegalStateException("expecting a AbstractTypeDeclaration but got "  //$NON-NLS-1$
                                                                 + node.getClass().getName());
                      }
                }


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

                final ASTNode node =
                        _env.getASTNodeForBinding(typeBinding);
                if (node != null) {
                        switch (node.getNodeType()) {

                        case ASTNode.TYPE_DECLARATION:
                        case ASTNode.ANNOTATION_TYPE_DECLARATION:
                        case ASTNode.ENUM_DECLARATION:
                                AbstractTypeDeclaration typeDecl =
                                        (AbstractTypeDeclaration) node;
                                // built the ast based methods first.
                                getASTFields(typeDecl, results);
                                break;
                        default:
                                // the ast node for a type binding should be a AbstractTypeDeclaration.
                                throw new IllegalStateException("expecting a AbstractTypeDeclaration but got "  //$NON-NLS-1$
                                                                 + node.getClass().getName());
                      }
                }


Clone Instance
3
Line Count
17
Source Line
289
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/TypeDeclarationImpl.java

                final ASTNode node =
                        _env.getASTNodeForBinding(typeBinding);
                if (node != null) {
                        switch (node.getNodeType()) {

                        case ASTNode.TYPE_DECLARATION:
                        case ASTNode.ANNOTATION_TYPE_DECLARATION:
                        case ASTNode.ENUM_DECLARATION:
                                AbstractTypeDeclaration typeDecl =
                                        (AbstractTypeDeclaration) node;
                                // built the ast based methods first.
                                getASTMethods(typeDecl, results);
                                break;
                        default:
                                // the ast node for a type binding should be a AbstractTypeDeclaration.
                                throw new IllegalStateException("expecting a AbstractTypeDeclaration but got "  //$NON-NLS-1$
                                                                 + node.getClass().getName());
                      }
                }


Clone AbstractionParameter Count: 1Parameter Bindings

final ASTNode node = _env.getASTNodeForBinding(typeBinding);
if (node != null) {
  switch (node.getNodeType()) {
    case ASTNode.TYPE_DECLARATION:
    case ASTNode.ANNOTATION_TYPE_DECLARATION:
    case ASTNode.ENUM_DECLARATION:
      AbstractTypeDeclaration typeDecl = (AbstractTypeDeclaration) node;
       [[#variableb24780e0]](typeDecl, results);
      break;
    default:
      // the ast node for a type binding should be a AbstractTypeDeclaration.
      throw new IllegalStateException("expecting a AbstractTypeDeclaration but got " //$NON-NLS-1$
                                       + node.getClass().getName());
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b24780e0]]
// built the ast based methods first.
getASTConstructor 
12[[#b24780e0]]
// built the ast based methods first.
getASTMethods 
13[[#b24780e0]]
// built the ast based methods first.
getASTFields