CloneSet164


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22730.953method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1221279
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java
2221309
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java
3221339
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java
4221370
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java
5221400
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java
6221430
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java
7231454
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java
Clone Instance
1
Line Count
22
Source Line
1279
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java

        /**
         * INTERNAL USE-ONLY
         * Generate the bytes for a synthetic method that provides an access to a private constructor.
         *
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
         */
        public void addSyntheticConstructorAccessMethod(SyntheticMethodBinding methodBinding) {
                generateMethodInfoHeader(methodBinding);
                int methodAttributeOffset = this.contentsOffset;
                // this will add exception attribute, synthetic attribute, deprecated attribute,...
                int attributeNumber = generateMethodInfoAttribute(methodBinding);
                // Code attribute
                int codeAttributeOffset = contentsOffset;
                attributeNumber++; // add code attribute
                generateCodeAttributeHeader();
                codeStream.init(this );
                codeStream.generateSyntheticBodyForConstructorAccess(methodBinding);
                completeCodeAttributeForSyntheticMethod(
                        methodBinding, 
                        codeAttributeOffset, 
                        ((SourceTypeBinding) methodBinding.declaringClass)
                                .scope
                                .referenceCompilationUnit()
                                .compilationResult
                                .getLineSeparatorPositions());
                // update the number of attributes
                contents[methodAttributeOffset++ ] = (byte) (attributeNumber >> 8);
                contents[methodAttributeOffset] = (byte) attributeNumber;
        }


Clone Instance
2
Line Count
22
Source Line
1309
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java

        /**
         * INTERNAL USE-ONLY
         *  Generate the bytes for a synthetic method that implements Enum#valueOf(String) for a given enum type
         *
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
         */
        public void addSyntheticEnumValueOfMethod(SyntheticMethodBinding methodBinding) {
                generateMethodInfoHeader(methodBinding);
                int methodAttributeOffset = this.contentsOffset;
                // this will add exception attribute, synthetic attribute, deprecated attribute,...
                int attributeNumber = generateMethodInfoAttribute(methodBinding);
                // Code attribute
                int codeAttributeOffset = contentsOffset;
                attributeNumber++; // add code attribute
                generateCodeAttributeHeader();
                codeStream.init(this );
                codeStream.generateSyntheticBodyForEnumValueOf(methodBinding);
                completeCodeAttributeForSyntheticMethod(
                        methodBinding, 
                        codeAttributeOffset, 
                        ((SourceTypeBinding) methodBinding.declaringClass)
                                .scope
                                .referenceCompilationUnit()
                                .compilationResult
                                .getLineSeparatorPositions());
                // update the number of attributes
                contents[methodAttributeOffset++ ] = (byte) (attributeNumber >> 8);
                contents[methodAttributeOffset] = (byte) attributeNumber;
        }


Clone Instance
3
Line Count
22
Source Line
1339
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java

        /**
         * INTERNAL USE-ONLY
         *  Generate the bytes for a synthetic method that implements Enum#values() for a given enum type
         *
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
         */
        public void addSyntheticEnumValuesMethod(SyntheticMethodBinding methodBinding) {
                generateMethodInfoHeader(methodBinding);
                int methodAttributeOffset = this.contentsOffset;
                // this will add exception attribute, synthetic attribute, deprecated attribute,...
                int attributeNumber = generateMethodInfoAttribute(methodBinding);
                // Code attribute
                int codeAttributeOffset = contentsOffset;
                attributeNumber++; // add code attribute
                generateCodeAttributeHeader();
                codeStream.init(this );
                codeStream.generateSyntheticBodyForEnumValues(methodBinding);
                completeCodeAttributeForSyntheticMethod(
                        methodBinding, 
                        codeAttributeOffset, 
                        ((SourceTypeBinding) methodBinding.declaringClass)
                                .scope
                                .referenceCompilationUnit()
                                .compilationResult
                                .getLineSeparatorPositions());
                // update the number of attributes
                contents[methodAttributeOffset++ ] = (byte) (attributeNumber >> 8);
                contents[methodAttributeOffset] = (byte) attributeNumber;
        }


Clone Instance
4
Line Count
22
Source Line
1370
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java

        /**
         * INTERNAL USE-ONLY
         * Generate the byte for a problem method info that correspond to a synthetic method that
         * generate an read access to a private field.
         *
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
         */
        public void addSyntheticFieldReadAccessMethod(SyntheticMethodBinding methodBinding) {
                generateMethodInfoHeader(methodBinding);
                int methodAttributeOffset = this.contentsOffset;
                // this will add exception attribute, synthetic attribute, deprecated attribute,...
                int attributeNumber = generateMethodInfoAttribute(methodBinding);
                // Code attribute
                int codeAttributeOffset = contentsOffset;
                attributeNumber++; // add code attribute
                generateCodeAttributeHeader();
                codeStream.init(this );
                codeStream.generateSyntheticBodyForFieldReadAccess(methodBinding);
                completeCodeAttributeForSyntheticMethod(
                        methodBinding, 
                        codeAttributeOffset, 
                        ((SourceTypeBinding) methodBinding.declaringClass)
                                .scope
                                .referenceCompilationUnit()
                                .compilationResult
                                .getLineSeparatorPositions());
                // update the number of attributes
                contents[methodAttributeOffset++ ] = (byte) (attributeNumber >> 8);
                contents[methodAttributeOffset] = (byte) attributeNumber;
        }


Clone Instance
5
Line Count
22
Source Line
1400
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java

        /**
         * INTERNAL USE-ONLY
         * Generate the byte for a problem method info that correspond to a synthetic method that
         * generate an write access to a private field.
         *
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
         */
        public void addSyntheticFieldWriteAccessMethod(SyntheticMethodBinding methodBinding) {
                generateMethodInfoHeader(methodBinding);
                int methodAttributeOffset = this.contentsOffset;
                // this will add exception attribute, synthetic attribute, deprecated attribute,...
                int attributeNumber = generateMethodInfoAttribute(methodBinding);
                // Code attribute
                int codeAttributeOffset = contentsOffset;
                attributeNumber++; // add code attribute
                generateCodeAttributeHeader();
                codeStream.init(this );
                codeStream.generateSyntheticBodyForFieldWriteAccess(methodBinding);
                completeCodeAttributeForSyntheticMethod(
                        methodBinding, 
                        codeAttributeOffset, 
                        ((SourceTypeBinding) methodBinding.declaringClass)
                                .scope
                                .referenceCompilationUnit()
                                .compilationResult
                                .getLineSeparatorPositions());
                // update the number of attributes
                contents[methodAttributeOffset++ ] = (byte) (attributeNumber >> 8);
                contents[methodAttributeOffset] = (byte) attributeNumber;
        }


Clone Instance
6
Line Count
22
Source Line
1430
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java

        /**
         * INTERNAL USE-ONLY
         * Generate the bytes for a synthetic method that provides access to a private method.
         *
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
         */
        public void addSyntheticMethodAccessMethod(SyntheticMethodBinding methodBinding) {
                generateMethodInfoHeader(methodBinding);
                int methodAttributeOffset = this.contentsOffset;
                // this will add exception attribute, synthetic attribute, deprecated attribute,...
                int attributeNumber = generateMethodInfoAttribute(methodBinding);
                // Code attribute
                int codeAttributeOffset = contentsOffset;
                attributeNumber++; // add code attribute
                generateCodeAttributeHeader();
                codeStream.init(this );
                codeStream.generateSyntheticBodyForMethodAccess(methodBinding);
                completeCodeAttributeForSyntheticMethod(
                        methodBinding, 
                        codeAttributeOffset, 
                        ((SourceTypeBinding) methodBinding.declaringClass)
                                .scope
                                .referenceCompilationUnit()
                                .compilationResult
                                .getLineSeparatorPositions());
                // update the number of attributes
                contents[methodAttributeOffset++ ] = (byte) (attributeNumber >> 8);
                contents[methodAttributeOffset] = (byte) attributeNumber;
        }


Clone Instance
7
Line Count
23
Source Line
1454
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java

        public void addSyntheticSwitchTable(SyntheticMethodBinding methodBinding) {
                generateMethodInfoHeader(methodBinding);
                int methodAttributeOffset = this.contentsOffset;
                // this will add exception attribute, synthetic attribute, deprecated attribute,...
                int attributeNumber = generateMethodInfoAttribute(methodBinding);
                // Code attribute
                int codeAttributeOffset = contentsOffset;
                attributeNumber++; // add code attribute
                generateCodeAttributeHeader();
                codeStream.init(this );
                codeStream.generateSyntheticBodyForSwitchTable(methodBinding);
                completeCodeAttributeForSyntheticMethod(
                        true, 
                        methodBinding, 
                        codeAttributeOffset, 
                        ((SourceTypeBinding) methodBinding.declaringClass)
                                .scope
                                .referenceCompilationUnit()
                                .compilationResult
                                .getLineSeparatorPositions());
                // update the number of attributes
                contents[methodAttributeOffset++ ] = (byte) (attributeNumber >> 8);
                contents[methodAttributeOffset] = (byte) attributeNumber;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * INTERNAL USE-ONLY
         * Generate the bytes for a synthetic method that provides an access to a private constructor.
         *
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
         */
/**
         * INTERNAL USE-ONLY
         *  Generate the bytes for a synthetic method that implements Enum#valueOf(String) for a given enum type
         *
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
         */
/**
         * INTERNAL USE-ONLY
         *  Generate the bytes for a synthetic method that implements Enum#values() for a given enum type
         *
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
         */
/**
         * INTERNAL USE-ONLY
         * Generate the byte for a problem method info that correspond to a synthetic method that
         * generate an read access to a private field.
         *
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
         */
/**
         * INTERNAL USE-ONLY
         * Generate the byte for a problem method info that correspond to a synthetic method that
         * generate an write access to a private field.
         *
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
         */
/**
         * INTERNAL USE-ONLY
         * Generate the bytes for a synthetic method that provides access to a private method.
         *
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
         */
public void [[#variable93b359e0]](SyntheticMethodBinding methodBinding) {
  generateMethodInfoHeader(methodBinding);
  int methodAttributeOffset = this.contentsOffset;
  // this will add exception attribute, synthetic attribute, deprecated attribute,...
  int attributeNumber = generateMethodInfoAttribute(methodBinding);
  // Code attribute
  int codeAttributeOffset = contentsOffset;
  attributeNumber++; // add code attribute
  generateCodeAttributeHeader();
  codeStream.init(this );
  codeStream. [[#variable93b35960]](methodBinding);
  completeCodeAttributeForSyntheticMethod( [[#variable93b35900]], codeAttributeOffset, ((SourceTypeBinding) methodBinding.declaringClass).scope.referenceCompilationUnit().compilationResult.getLineSeparatorPositions());
  // update the number of attributes
  contents[methodAttributeOffset++ ] = (byte) (attributeNumber >> 8);
  contents[methodAttributeOffset] = (byte) attributeNumber;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#93b359e0]]
addSyntheticConstructorAccessMethod 
12[[#93b359e0]]
addSyntheticEnumValueOfMethod 
13[[#93b359e0]]
addSyntheticEnumValuesMethod 
14[[#93b359e0]]
addSyntheticFieldReadAccessMethod 
15[[#93b359e0]]
addSyntheticFieldWriteAccessMethod 
16[[#93b359e0]]
addSyntheticMethodAccessMethod 
17[[#93b359e0]]
addSyntheticSwitchTable 
21[[#93b35960]]
generateSyntheticBodyForConstructorAccess 
22[[#93b35960]]
generateSyntheticBodyForEnumValueOf 
23[[#93b35960]]
generateSyntheticBodyForEnumValues 
24[[#93b35960]]
generateSyntheticBodyForFieldReadAccess 
25[[#93b35960]]
generateSyntheticBodyForFieldWriteAccess 
26[[#93b35960]]
generateSyntheticBodyForMethodAccess 
27[[#93b35960]]
generateSyntheticBodyForSwitchTable 
31[[#93b35900]]
methodBinding 
32[[#93b35900]]
methodBinding 
33[[#93b35900]]
methodBinding 
34[[#93b35900]]
methodBinding 
35[[#93b35900]]
methodBinding 
36[[#93b35900]]
methodBinding 
37[[#93b35900]]
true, methodBinding