CloneSet45


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
53510.999statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1534343
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
2534494
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
3534569
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
4534671
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
5534752
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
Clone Instance
1
Line Count
53
Source Line
4343
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

                        while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
                                IExtendedModifier modifier = null;
                                switch (token) {
                                        case TerminalTokens.TokenNameabstract:
                                                modifier = createModifier(Modifier.ModifierKeyword.ABSTRACT_KEYWORD);
                                                break;
                                        case TerminalTokens.TokenNamepublic:
                                                modifier = createModifier(Modifier.ModifierKeyword.PUBLIC_KEYWORD);
                                                break;
                                        case TerminalTokens.TokenNamestatic:
                                                modifier = createModifier(Modifier.ModifierKeyword.STATIC_KEYWORD);
                                                break;
                                        case TerminalTokens.TokenNameprotected:
                                                modifier = createModifier(Modifier.ModifierKeyword.PROTECTED_KEYWORD);
                                                break;
                                        case TerminalTokens.TokenNameprivate:
                                                modifier = createModifier(Modifier.ModifierKeyword.PRIVATE_KEYWORD);
                                                break;
                                        case TerminalTokens.TokenNamefinal:
                                                modifier = createModifier(Modifier.ModifierKeyword.FINAL_KEYWORD);
                                                break;
                                        case TerminalTokens.TokenNamenative:
                                                modifier = createModifier(Modifier.ModifierKeyword.NATIVE_KEYWORD);
                                                break;
                                        case TerminalTokens.TokenNamesynchronized:
                                                modifier = createModifier(Modifier.ModifierKeyword.SYNCHRONIZED_KEYWORD);
                                                break;
                                        case TerminalTokens.TokenNametransient:
                                                modifier = createModifier(Modifier.ModifierKeyword.TRANSIENT_KEYWORD);
                                                break;
                                        case TerminalTokens.TokenNamevolatile:
                                                modifier = createModifier(Modifier.ModifierKeyword.VOLATILE_KEYWORD);
                                                break;
                                        case TerminalTokens.TokenNamestrictfp:
                                                modifier = createModifier(Modifier.ModifierKeyword.STRICTFP_KEYWORD);
                                                break;
                                        case TerminalTokens.TokenNameAT:
                                                // we have an annotation
                                                if (annotations != null && indexInAnnotations < annotations.length) {
                                                        org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++ ];
                                                        modifier = convert(annotation);
                                                        this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength);
                                                }
                                                break;
                                        case TerminalTokens.TokenNameCOMMENT_BLOCK:
                                        case TerminalTokens.TokenNameCOMMENT_LINE:
                                        case TerminalTokens.TokenNameCOMMENT_JAVADOC:
                                                break;
                                        default:
                                                return;
                                      }
                                if (modifier != null) {
                                        bodyDeclaration.modifiers().add(modifier);
                                }
                        }


Clone Instance
2
Line Count
53
Source Line
4494
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

                                        while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
                                                IExtendedModifier modifier = null;
                                                switch (token) {
                                                        case TerminalTokens.TokenNameabstract:
                                                                modifier = createModifier(Modifier.ModifierKeyword.ABSTRACT_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamepublic:
                                                                modifier = createModifier(Modifier.ModifierKeyword.PUBLIC_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamestatic:
                                                                modifier = createModifier(Modifier.ModifierKeyword.STATIC_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNameprotected:
                                                                modifier = createModifier(Modifier.ModifierKeyword.PROTECTED_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNameprivate:
                                                                modifier = createModifier(Modifier.ModifierKeyword.PRIVATE_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamefinal:
                                                                modifier = createModifier(Modifier.ModifierKeyword.FINAL_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamenative:
                                                                modifier = createModifier(Modifier.ModifierKeyword.NATIVE_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamesynchronized:
                                                                modifier = createModifier(Modifier.ModifierKeyword.SYNCHRONIZED_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNametransient:
                                                                modifier = createModifier(Modifier.ModifierKeyword.TRANSIENT_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamevolatile:
                                                                modifier = createModifier(Modifier.ModifierKeyword.VOLATILE_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamestrictfp:
                                                                modifier = createModifier(Modifier.ModifierKeyword.STRICTFP_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNameAT:
                                                                // we have an annotation
                                                                if (annotations != null && indexInAnnotations < annotations.length) {
                                                                        org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++ ];
                                                                        modifier = convert(annotation);
                                                                        this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength);
                                                                }
                                                                break;
                                                        case TerminalTokens.TokenNameCOMMENT_BLOCK:
                                                        case TerminalTokens.TokenNameCOMMENT_LINE:
                                                        case TerminalTokens.TokenNameCOMMENT_JAVADOC:
                                                                break;
                                                        default:
                                                                return;
                                                      }
                                                if (modifier != null) {
                                                        variableDecl.modifiers().add(modifier);
                                                }
                                        }


Clone Instance
3
Line Count
53
Source Line
4569
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

                                while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
                                        IExtendedModifier modifier = null;
                                        switch (token) {
                                                case TerminalTokens.TokenNameabstract:
                                                        modifier = createModifier(Modifier.ModifierKeyword.ABSTRACT_KEYWORD);
                                                        break;
                                                case TerminalTokens.TokenNamepublic:
                                                        modifier = createModifier(Modifier.ModifierKeyword.PUBLIC_KEYWORD);
                                                        break;
                                                case TerminalTokens.TokenNamestatic:
                                                        modifier = createModifier(Modifier.ModifierKeyword.STATIC_KEYWORD);
                                                        break;
                                                case TerminalTokens.TokenNameprotected:
                                                        modifier = createModifier(Modifier.ModifierKeyword.PROTECTED_KEYWORD);
                                                        break;
                                                case TerminalTokens.TokenNameprivate:
                                                        modifier = createModifier(Modifier.ModifierKeyword.PRIVATE_KEYWORD);
                                                        break;
                                                case TerminalTokens.TokenNamefinal:
                                                        modifier = createModifier(Modifier.ModifierKeyword.FINAL_KEYWORD);
                                                        break;
                                                case TerminalTokens.TokenNamenative:
                                                        modifier = createModifier(Modifier.ModifierKeyword.NATIVE_KEYWORD);
                                                        break;
                                                case TerminalTokens.TokenNamesynchronized:
                                                        modifier = createModifier(Modifier.ModifierKeyword.SYNCHRONIZED_KEYWORD);
                                                        break;
                                                case TerminalTokens.TokenNametransient:
                                                        modifier = createModifier(Modifier.ModifierKeyword.TRANSIENT_KEYWORD);
                                                        break;
                                                case TerminalTokens.TokenNamevolatile:
                                                        modifier = createModifier(Modifier.ModifierKeyword.VOLATILE_KEYWORD);
                                                        break;
                                                case TerminalTokens.TokenNamestrictfp:
                                                        modifier = createModifier(Modifier.ModifierKeyword.STRICTFP_KEYWORD);
                                                        break;
                                                case TerminalTokens.TokenNameAT:
                                                        // we have an annotation
                                                        if (annotations != null && indexInAnnotations < annotations.length) {
                                                                org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++ ];
                                                                modifier = convert(annotation);
                                                                this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength);
                                                        }
                                                        break;
                                                case TerminalTokens.TokenNameCOMMENT_BLOCK:
                                                case TerminalTokens.TokenNameCOMMENT_LINE:
                                                case TerminalTokens.TokenNameCOMMENT_JAVADOC:
                                                        break;
                                                default:
                                                        return;
                                              }
                                        if (modifier != null) {
                                                variableDecl.modifiers().add(modifier);
                                        }
                                }


Clone Instance
4
Line Count
53
Source Line
4671
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

                                        while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
                                                IExtendedModifier modifier = null;
                                                switch (token) {
                                                        case TerminalTokens.TokenNameabstract:
                                                                modifier = createModifier(Modifier.ModifierKeyword.ABSTRACT_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamepublic:
                                                                modifier = createModifier(Modifier.ModifierKeyword.PUBLIC_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamestatic:
                                                                modifier = createModifier(Modifier.ModifierKeyword.STATIC_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNameprotected:
                                                                modifier = createModifier(Modifier.ModifierKeyword.PROTECTED_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNameprivate:
                                                                modifier = createModifier(Modifier.ModifierKeyword.PRIVATE_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamefinal:
                                                                modifier = createModifier(Modifier.ModifierKeyword.FINAL_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamenative:
                                                                modifier = createModifier(Modifier.ModifierKeyword.NATIVE_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamesynchronized:
                                                                modifier = createModifier(Modifier.ModifierKeyword.SYNCHRONIZED_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNametransient:
                                                                modifier = createModifier(Modifier.ModifierKeyword.TRANSIENT_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamevolatile:
                                                                modifier = createModifier(Modifier.ModifierKeyword.VOLATILE_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamestrictfp:
                                                                modifier = createModifier(Modifier.ModifierKeyword.STRICTFP_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNameAT:
                                                                // we have an annotation
                                                                if (annotations != null && indexInAnnotations < annotations.length) {
                                                                        org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++ ];
                                                                        modifier = convert(annotation);
                                                                        this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength);
                                                                }
                                                                break;
                                                        case TerminalTokens.TokenNameCOMMENT_BLOCK:
                                                        case TerminalTokens.TokenNameCOMMENT_LINE:
                                                        case TerminalTokens.TokenNameCOMMENT_JAVADOC:
                                                                break;
                                                        default:
                                                                return;
                                                      }
                                                if (modifier != null) {
                                                        variableDeclarationExpression.modifiers().add(modifier);
                                                }
                                        }


Clone Instance
5
Line Count
53
Source Line
4752
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

                                        while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
                                                IExtendedModifier modifier = null;
                                                switch (token) {
                                                        case TerminalTokens.TokenNameabstract:
                                                                modifier = createModifier(Modifier.ModifierKeyword.ABSTRACT_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamepublic:
                                                                modifier = createModifier(Modifier.ModifierKeyword.PUBLIC_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamestatic:
                                                                modifier = createModifier(Modifier.ModifierKeyword.STATIC_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNameprotected:
                                                                modifier = createModifier(Modifier.ModifierKeyword.PROTECTED_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNameprivate:
                                                                modifier = createModifier(Modifier.ModifierKeyword.PRIVATE_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamefinal:
                                                                modifier = createModifier(Modifier.ModifierKeyword.FINAL_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamenative:
                                                                modifier = createModifier(Modifier.ModifierKeyword.NATIVE_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamesynchronized:
                                                                modifier = createModifier(Modifier.ModifierKeyword.SYNCHRONIZED_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNametransient:
                                                                modifier = createModifier(Modifier.ModifierKeyword.TRANSIENT_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamevolatile:
                                                                modifier = createModifier(Modifier.ModifierKeyword.VOLATILE_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNamestrictfp:
                                                                modifier = createModifier(Modifier.ModifierKeyword.STRICTFP_KEYWORD);
                                                                break;
                                                        case TerminalTokens.TokenNameAT:
                                                                // we have an annotation
                                                                if (annotations != null && indexInAnnotations < annotations.length) {
                                                                        org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++ ];
                                                                        modifier = convert(annotation);
                                                                        this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength);
                                                                }
                                                                break;
                                                        case TerminalTokens.TokenNameCOMMENT_BLOCK:
                                                        case TerminalTokens.TokenNameCOMMENT_LINE:
                                                        case TerminalTokens.TokenNameCOMMENT_JAVADOC:
                                                                break;
                                                        default:
                                                                return;
                                                      }
                                                if (modifier != null) {
                                                        variableDeclarationStatement.modifiers().add(modifier);
                                                }
                                        }


Clone AbstractionParameter Count: 1Parameter Bindings

while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
  IExtendedModifier modifier = null;
  switch (token) {
    case TerminalTokens.TokenNameabstract:
      modifier = createModifier(Modifier.ModifierKeyword.ABSTRACT_KEYWORD);
      break;
    case TerminalTokens.TokenNamepublic:
      modifier = createModifier(Modifier.ModifierKeyword.PUBLIC_KEYWORD);
      break;
    case TerminalTokens.TokenNamestatic:
      modifier = createModifier(Modifier.ModifierKeyword.STATIC_KEYWORD);
      break;
    case TerminalTokens.TokenNameprotected:
      modifier = createModifier(Modifier.ModifierKeyword.PROTECTED_KEYWORD);
      break;
    case TerminalTokens.TokenNameprivate:
      modifier = createModifier(Modifier.ModifierKeyword.PRIVATE_KEYWORD);
      break;
    case TerminalTokens.TokenNamefinal:
      modifier = createModifier(Modifier.ModifierKeyword.FINAL_KEYWORD);
      break;
    case TerminalTokens.TokenNamenative:
      modifier = createModifier(Modifier.ModifierKeyword.NATIVE_KEYWORD);
      break;
    case TerminalTokens.TokenNamesynchronized:
      modifier = createModifier(Modifier.ModifierKeyword.SYNCHRONIZED_KEYWORD);
      break;
    case TerminalTokens.TokenNametransient:
      modifier = createModifier(Modifier.ModifierKeyword.TRANSIENT_KEYWORD);
      break;
    case TerminalTokens.TokenNamevolatile:
      modifier = createModifier(Modifier.ModifierKeyword.VOLATILE_KEYWORD);
      break;
    case TerminalTokens.TokenNamestrictfp:
      modifier = createModifier(Modifier.ModifierKeyword.STRICTFP_KEYWORD);
      break;
    case TerminalTokens.TokenNameAT:
      // we have an annotation
      if (annotations != null && indexInAnnotations < annotations.length) {
        org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++ ];
        modifier = convert(annotation);
        this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength);
      }
      break;
    case TerminalTokens.TokenNameCOMMENT_BLOCK:
    case TerminalTokens.TokenNameCOMMENT_LINE:
    case TerminalTokens.TokenNameCOMMENT_JAVADOC:
      break;
    default:
      return;
  }
  if (modifier != null) {
     [[#variablebf81f660]].modifiers().add(modifier);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bf81f660]]
variableDecl 
12[[#bf81f660]]
bodyDeclaration 
13[[#bf81f660]]
variableDeclarationExpression 
14[[#bf81f660]]
variableDeclarationStatement 
15[[#bf81f660]]
variableDecl