CloneSet481


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
37201.000statement_sequence[10]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
137511
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java
23641
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetTypeDeclaration.java
Clone Instance
1
Line Count
37
Source Line
511
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java

                // generate all fiels
                classFile.addFieldInfos();

                // record the inner type inside its own .class file to be able
                // to generate inner classes attributes
                if (this.binding.isMemberType())
                        classFile.recordEnclosingTypeAttributes(this.binding);
                if (this.binding.isLocalType()) {
                        enclosingClassFile.recordNestedLocalAttribute(this.binding);
                        classFile.recordNestedLocalAttribute(this.binding);
                }
                if (this.memberTypes != null) {
                        for (int i = 0, max = this.memberTypes.length; i < max; i++) {
                                // record the inner type inside its own .class file to be able
                                // to generate inner classes attributes
                                classFile.recordNestedMemberAttribute(this.memberTypes[i].binding);
                                this.memberTypes[i].generateCode(this.scope, classFile);
                        }
                }
                // generate all methods
                classFile.setForMethodInfos();
                if (this.methods != null) {
                        for (int i = 0, max = this.methods.length; i < max; i++) {
                                this.methods[i].generateCode(this.scope, classFile);
                        }
                }
                // generate all synthetic and abstract methods
                classFile.addSpecialMethods();

                if (this.ignoreFurtherInvestigation) { // trigger problem type generation for code gen errors
                        throw new AbortType(this.scope.referenceCompilationUnit().compilationResult, null);
                }

                // finalize the compiled type result
                classFile.addAttributes();
                this.scope.referenceCompilationUnit().compilationResult.record(
                        this.binding.constantPoolName(), 
                        classFile                                             );


Clone Instance
2
Line Count
36
Source Line
41
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetTypeDeclaration.java

                // generate all fiels
                classFile.addFieldInfos();

                // record the inner type inside its own .class file to be able
                // to generate inner classes attributes
                if (this.binding.isMemberType())
                        classFile.recordEnclosingTypeAttributes(this.binding);
                if (this.binding.isLocalType()) {
                        enclosingClassFile.recordNestedLocalAttribute(this.binding);
                        classFile.recordNestedLocalAttribute(this.binding);
                }
                if (this.memberTypes != null) {
                        for (int i = 0, max = this.memberTypes.length; i < max; i++) {
                                // record the inner type inside its own .class file to be able
                                // to generate inner classes attributes
                                classFile.recordNestedMemberAttribute(this.memberTypes[i].binding);
                                this.memberTypes[i].generateCode(this.scope, classFile);
                        }
                }
                // generate all methods
                classFile.setForMethodInfos();
                if (this.methods != null) {
                        for (int i = 0, max = this.methods.length; i < max; i++) {
                                this.methods[i].generateCode(this.scope, classFile);
                        }
                }

                // generate all methods
                classFile.addSpecialMethods();

                if (this.ignoreFurtherInvestigation) { // trigger problem type generation for code gen errors
                        throw new AbortType(this.scope.referenceCompilationUnit().compilationResult, null);
                }

                // finalize the compiled type result
                classFile.addAttributes();
                this.scope.referenceCompilationUnit().compilationResult.record(this.binding.constantPoolName(), classFile);


Clone AbstractionParameter Count: 0Parameter Bindings

// generate all fiels
classFile.addFieldInfos();
// record the inner type inside its own .class file to be able
// to generate inner classes attributes
if (this.binding.isMemberType())
  classFile.recordEnclosingTypeAttributes(this.binding);
if (this.binding.isLocalType()) {
  enclosingClassFile.recordNestedLocalAttribute(this.binding);
  classFile.recordNestedLocalAttribute(this.binding);
}
if (this.memberTypes != null) {
  for (int i = 0, max = this.memberTypes.length; i < max; i++) {
    // record the inner type inside its own .class file to be able
    // to generate inner classes attributes
    classFile.recordNestedMemberAttribute(this.memberTypes[i].binding);
    this.memberTypes[i].generateCode(this.scope, classFile);
  }
}
// generate all methods
classFile.setForMethodInfos();
if (this.methods != null) {
  for (int i = 0, max = this.methods.length; i < max; i++) {
    this.methods[i].generateCode(this.scope, classFile);
  }
}
// generate all synthetic and abstract methods
// generate all methods
classFile.addSpecialMethods();
if (this.ignoreFurtherInvestigation) { // trigger problem type generation for code gen errors
  throw new AbortType(this.scope.referenceCompilationUnit().compilationResult, null);
}
// finalize the compiled type result
classFile.addAttributes();
this.scope.referenceCompilationUnit().compilationResult.record(this.binding.constantPoolName(), classFile);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None