CloneSet918


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24260.978class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12436
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/LocalVariableAttribute.java
22436
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/LocalVariableTypeAttribute.java
Clone Instance
1
Line Count
24
Source Line
36
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/LocalVariableAttribute.java

        /**
         * Constructor for LocalVariableAttribute.
         * @param classFileBytes
         * @param constantPool
         * @param offset
         * @throws ClassFormatException
         */
        public LocalVariableAttribute(
                byte[] classFileBytes,
                IConstantPool constantPool,
                int offset           ) throws
                       ClassFormatException {
                super(classFileBytes, constantPool, offset);
                final int length = u2At(classFileBytes, 6, offset);
                this.localVariableTableLength = length;
                if (length != 0) {
                        int readOffset = 8;
                        this.localVariableTable = new ILocalVariableTableEntry[length];
                        for (int i = 0; i < length; i++) {
                                this.localVariableTable[i] = new LocalVariableTableEntry(classFileBytes, constantPool, offset + readOffset);
                                readOffset += 10;
                        }
                }
                else   {
                        this.localVariableTable = NO_ENTRIES;
                }
        }

        /**
         * @see ILocalVariableAttribute#getLocalVariableTable()
         */
        public ILocalVariableTableEntry[] getLocalVariableTable() {
                return this.localVariableTable;
        }


Clone Instance
2
Line Count
24
Source Line
36
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/LocalVariableTypeAttribute.java

        /**
         * Constructor for LocalVariableTypeAttribute.
         * @param classFileBytes
         * @param constantPool
         * @param offset
         * @throws ClassFormatException
         */
        public LocalVariableTypeAttribute(
                byte[] classFileBytes,
                IConstantPool constantPool,
                int offset               ) throws
                       ClassFormatException {
                super(classFileBytes, constantPool, offset);
                final int length = u2At(classFileBytes, 6, offset);
                this.localVariableTypeTableLength = length;
                if (length != 0) {
                        int readOffset = 8;
                        this.localVariableTypeTableEntries = new ILocalVariableTypeTableEntry[length];
                        for (int i = 0; i < length; i++) {
                                this.localVariableTypeTableEntries[i] = new LocalVariableTypeTableEntry(classFileBytes, constantPool, offset + readOffset);
                                readOffset += 10;
                        }
                }
                else   {
                        this.localVariableTypeTableEntries = NO_ENTRIES;
                }
        }

        /**
         * @see ILocalVariableTypeTableAttribute#getLocalVariableTypeTable()
         */
        public ILocalVariableTypeTableEntry[] getLocalVariableTypeTable() {
                return this.localVariableTypeTableEntries;
        }


Clone AbstractionParameter Count: 6Parameter Bindings

/**
         * Constructor for LocalVariableAttribute.
         * @param classFileBytes
         * @param constantPool
         * @param offset
         * @throws ClassFormatException
         */
/**
         * Constructor for LocalVariableTypeAttribute.
         * @param classFileBytes
         * @param constantPool
         * @param offset
         * @throws ClassFormatException
         */
public [[#variablec203a2e0]](byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException {
  super(classFileBytes, constantPool, offset);
  final int length = u2At(classFileBytes, 6, offset);
  this. [[#variablec203a260]]= length;
  if (length != 0) {
    int readOffset = 8;
    this. [[#variablec203a1a0]]= new [[#variablec203a0a0]][length];
    for (int i = 0; i < length; i++) {
      this. [[#variablec203a1a0]][i] = new [[#variablec203a100]](classFileBytes, constantPool, offset + readOffset);
      readOffset += 10;
    }
  }
  else {
    this. [[#variablec203a1a0]]= NO_ENTRIES;
  }
}

/**
         * @see ILocalVariableAttribute#getLocalVariableTable()
         */
/**
         * @see ILocalVariableTypeTableAttribute#getLocalVariableTypeTable()
         */
public [[#variablec203a0a0]][]  [[#variablec203a020]]() {
  return this. [[#variablec203a1a0]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c203a2e0]]
LocalVariableAttribute 
12[[#c203a2e0]]
LocalVariableTypeAttribute 
21[[#c203a260]]
localVariableTableLength 
22[[#c203a260]]
localVariableTypeTableLength 
31[[#c203a1a0]]
localVariableTable 
32[[#c203a1a0]]
localVariableTypeTableEntries 
41[[#c203a0a0]]
ILocalVariableTableEntry 
42[[#c203a0a0]]
ILocalVariableTypeTableEntry 
51[[#c203a100]]
LocalVariableTableEntry 
52[[#c203a100]]
LocalVariableTypeTableEntry 
61[[#c203a020]]
getLocalVariableTable 
62[[#c203a020]]
getLocalVariableTypeTable