CloneSet2140


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.981class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117235
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetParser.java
223704
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/DocumentElementParser.java
Clone Instance
1
Line Count
17
Source Line
235
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetParser.java

protected void consumeInternalCompilationUnitWithTypes() {
        // InternalCompilationUnit ::= PackageDeclaration ImportDeclarations ReduceImports TypeDeclarations
        // InternalCompilationUnit ::= PackageDeclaration TypeDeclarations
        // InternalCompilationUnit ::= TypeDeclarations
        // InternalCompilationUnit ::= ImportDeclarations ReduceImports TypeDeclarations
        // consume type declarations
        int length;
        if ((length = this.astLengthStack[this.astLengthPtr-- ]) != 0) {
                this.compilationUnit.types = new TypeDeclaration[length];
                this.astPtr -= length;
                System.arraycopy(this.astStack, this.astPtr + 1, this.compilationUnit.types, 0, length);
        }
}

protected void consumeLocalVariableDeclarationStatement() {
        super.consumeLocalVariableDeclarationStatement();
        /* recovery */
        recordLastStatementIfNeeded();
}


Clone Instance
2
Line Count
23
Source Line
704
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/DocumentElementParser.java

protected void consumeInternalCompilationUnitWithTypes() {
        // InternalCompilationUnit ::= PackageDeclaration ImportDeclarations ReduceImports TypeDeclarations
        // InternalCompilationUnit ::= PackageDeclaration TypeDeclarations
        // InternalCompilationUnit ::= TypeDeclarations
        // InternalCompilationUnit ::= ImportDeclarations ReduceImports TypeDeclarations
        // consume type declarations
        int length;
        if ((length = this.astLengthStack[this.astLengthPtr-- ]) != 0) {
                this.compilationUnit.types = new TypeDeclaration[length];
                this.astPtr -= length;
                System.arraycopy(this.astStack, this.astPtr + 1, this.compilationUnit.types, 0, length);
        }
}

/*
 *
 * INTERNAL USE-ONLY
 */
protected void consumeLocalVariableDeclaration() {
        // See consumeLocalVariableDeclarationDefaultModifier() in case of change: duplicated code
        // FieldDeclaration ::= Modifiersopt Type VariableDeclarators ';'

        super.consumeLocalVariableDeclaration();
        intArrayPtr--;
}


Clone AbstractionParameter Count: 2Parameter Bindings

protected void consumeInternalCompilationUnitWithTypes() {
  // InternalCompilationUnit ::= PackageDeclaration ImportDeclarations ReduceImports TypeDeclarations
  // InternalCompilationUnit ::= PackageDeclaration TypeDeclarations
  // InternalCompilationUnit ::= TypeDeclarations
  // InternalCompilationUnit ::= ImportDeclarations ReduceImports TypeDeclarations
  // consume type declarations
  int length;
  if ((length = this.astLengthStack[this.astLengthPtr-- ]) != 0) {
    this.compilationUnit.types = new TypeDeclaration[length];
    this.astPtr -= length;
    System.arraycopy(this.astStack, this.astPtr + 1, this.compilationUnit.types, 0, length);
  }
}

/*
 *
 * INTERNAL USE-ONLY
 */
protected void [[#variable9d9920c0]]() {
  // See consumeLocalVariableDeclarationDefaultModifier() in case of change: duplicated code
  // FieldDeclaration ::= Modifiersopt Type VariableDeclarators ';'
  super. [[#variable9d9920c0]]();
   [[#variableb1af3620]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9d9920c0]]
consumeLocalVariableDeclarationStatement 
12[[#9d9920c0]]
consumeLocalVariableDeclaration 
21[[#b1af3620]]
/* recovery */
recordLastStatementIfNeeded() 
22[[#b1af3620]]
intArrayPtr--