CloneSet593


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23260.978class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1239568
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
2239593
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
Clone Instance
1
Line Count
23
Source Line
9568
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

                private void endVisitMethod(AbstractMethodDeclaration methodDeclaration, ClassScope scope) {
                        TypeDeclaration[] foundTypes = null;
                        int length = 0;
                        if (this.typePtr > -1) {
                                length = this.typePtr + 1;
                                foundTypes = new TypeDeclaration[length];
                                System.arraycopy(this.types, 0, foundTypes, 0, length);
                        }
                        ReferenceContext oldContext = Parser.this.referenceContext;
                        Parser.this.recoveryScanner.resetTo(methodDeclaration.bodyStart, methodDeclaration.bodyEnd);
                        Scanner oldScanner = Parser.this.scanner;
                        Parser.this.scanner = Parser.this.recoveryScanner;
                        Parser.this.parseStatements(
                                        methodDeclaration, 
                                        methodDeclaration.bodyStart, 
                                        methodDeclaration.bodyEnd, 
                                        foundTypes, 
                                        compilationUnit);
                        Parser.this.scanner = oldScanner;
                        Parser.this.referenceContext = oldContext;

                        for (int i = 0; i < length; i++) {
                                foundTypes[i].traverse(typeVisitor, scope);
                        }
                }


Clone Instance
2
Line Count
23
Source Line
9593
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

                public void endVisit(Initializer initializer, MethodScope scope) {
                        TypeDeclaration[] foundTypes = null;
                        int length = 0;
                        if (this.typePtr > -1) {
                                length = this.typePtr + 1;
                                foundTypes = new TypeDeclaration[length];
                                System.arraycopy(this.types, 0, foundTypes, 0, length);
                        }
                        ReferenceContext oldContext = Parser.this.referenceContext;
                        Parser.this.recoveryScanner.resetTo(initializer.bodyStart, initializer.bodyEnd);
                        Scanner oldScanner = Parser.this.scanner;
                        Parser.this.scanner = Parser.this.recoveryScanner;
                        Parser.this.parseStatements(
                                        this.enclosingType, 
                                        initializer.bodyStart, 
                                        initializer.bodyEnd, 
                                        foundTypes, 
                                        compilationUnit);
                        Parser.this.scanner = oldScanner;
                        Parser.this.referenceContext = oldContext;

                        for (int i = 0; i < length; i++) {
                                foundTypes[i].traverse(typeVisitor, scope);
                        }
                }


Clone AbstractionParameter Count: 6Parameter Bindings

 [[#variableb92aa900]]void [[#variableb92aa840]]( [[#variableb92aa820]]  [[#variableb92aa740]], [[#variableb92aa7e0]] scope) {
  TypeDeclaration[] foundTypes = null;
  int length = 0;
  if (this.typePtr > -1) {
    length = this.typePtr + 1;
    foundTypes = new TypeDeclaration[length];
    System.arraycopy(this.types, 0, foundTypes, 0, length);
  }
  ReferenceContext oldContext = Parser.this.referenceContext;
  Parser.this.recoveryScanner.resetTo( [[#variableb92aa740]].bodyStart,  [[#variableb92aa740]].bodyEnd);
  Scanner oldScanner = Parser.this.scanner;
  Parser.this.scanner = Parser.this.recoveryScanner;
  Parser.this.parseStatements( [[#variableb92aa7c0]],  [[#variableb92aa740]].bodyStart,  [[#variableb92aa740]].bodyEnd, foundTypes, compilationUnit);
  Parser.this.scanner = oldScanner;
  Parser.this.referenceContext = oldContext;
  for (int i = 0; i < length; i++) {
    foundTypes[i].traverse(typeVisitor, scope);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b92aa900]]
private 
12[[#b92aa900]]
public 
21[[#b92aa840]]
endVisitMethod 
22[[#b92aa840]]
endVisit 
31[[#b92aa820]]
AbstractMethodDeclaration 
32[[#b92aa820]]
Initializer 
41[[#b92aa740]]
methodDeclaration 
42[[#b92aa740]]
initializer 
51[[#b92aa7e0]]
ClassScope 
52[[#b92aa7e0]]
MethodScope 
61[[#b92aa7c0]]
methodDeclaration 
62[[#b92aa7c0]]
this.enclosingType