CloneSet207


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
30250.982statement_sequence[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1301015
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Disassembler.java
2301060
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Disassembler.java
Clone Instance
1
Line Count
30
Source Line
1015
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Disassembler.java

                        for (int i = 0; i < localVariableAttributeLength - 1; i++) {
                                ILocalVariableTableEntry localVariableTableEntry = localVariableTableEntries[i];
                                int index = localVariableTableEntry.getIndex();
                                int startPC = localVariableTableEntry.getStartPC();
                                int length =  localVariableTableEntry.getLength();
                                final char[] typeName = Signature.toCharArray(localVariableTableEntry.getDescriptor());
                                CharOperation.replace(typeName, '/', '.');
                                buffer.append(Messages.bind(Messages.classfileformat_localvariabletableentry, 
                                        new String[] {
                                                Integer.toString(startPC),
                                                Integer.toString(startPC + length),
                                                new String(localVariableTableEntry.getName()),
                                                Integer.toString(index),
                                                new String(returnClassName(typeName, '.', mode))
                                                     }     ));
                                writeNewLine(buffer, lineSeparator, tabNumberForLocalVariableAttribute + 1);
                        }
                        ILocalVariableTableEntry localVariableTableEntry = localVariableTableEntries[localVariableAttributeLength - 1];
                        int index = localVariableTableEntry.getIndex();
                        int startPC = localVariableTableEntry.getStartPC();
                        int length =  localVariableTableEntry.getLength();
                        final char[] typeName = Signature.toCharArray(localVariableTableEntry.getDescriptor());
                        CharOperation.replace(typeName, '/', '.');
                        buffer.append(Messages.bind(Messages.classfileformat_localvariabletableentry, 
                                new String[] {
                                        Integer.toString(startPC),
                                        Integer.toString(startPC + length),
                                        new String(localVariableTableEntry.getName()),
                                        Integer.toString(index),
                                        new String(returnClassName(typeName, '.', mode))
                                             }     ));


Clone Instance
2
Line Count
30
Source Line
1060
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Disassembler.java

                        for (int i = 0; i < localVariableTypeTableLength - 1; i++) {
                                ILocalVariableTypeTableEntry localVariableTypeTableEntry = localVariableTypeTableEntries[i];
                                int index = localVariableTypeTableEntry.getIndex();
                                int startPC = localVariableTypeTableEntry.getStartPC();
                                int length =  localVariableTypeTableEntry.getLength();
                                final char[] typeName = Signature.toCharArray(localVariableTypeTableEntry.getSignature());
                                CharOperation.replace(typeName, '/', '.');
                                buffer.append(Messages.bind(Messages.classfileformat_localvariabletableentry, 
                                        new String[] {
                                                Integer.toString(startPC),
                                                Integer.toString(startPC + length),
                                                new String(localVariableTypeTableEntry.getName()),
                                                Integer.toString(index),
                                                new String(returnClassName(typeName, '.', mode))
                                                     }     ));
                                writeNewLine(buffer, lineSeparator, tabNumberForLocalVariableAttribute + 1);
                        }
                        ILocalVariableTypeTableEntry localVariableTypeTableEntry = localVariableTypeTableEntries[localVariableTypeTableLength - 1];
                        int index = localVariableTypeTableEntry.getIndex();
                        int startPC = localVariableTypeTableEntry.getStartPC();
                        int length =  localVariableTypeTableEntry.getLength();
                        final char[] typeName = Signature.toCharArray(localVariableTypeTableEntry.getSignature());
                        CharOperation.replace(typeName, '/', '.');
                        buffer.append(Messages.bind(Messages.classfileformat_localvariabletableentry, 
                                new String[] {
                                        Integer.toString(startPC),
                                        Integer.toString(startPC + length),
                                        new String(localVariableTypeTableEntry.getName()),
                                        Integer.toString(index),
                                        new String(returnClassName(typeName, '.', mode))
                                             }     ));


Clone AbstractionParameter Count: 5Parameter Bindings

for (int i = 0; i <  [[#variableb7c1f4c0]] - 1; i++) {
   [[#variableb7c1f480]]  [[#variable7d16b540]]= [[#variableb7c1f320]][i];
  int index = [[#variable7d16b540]].getIndex();
  int startPC = [[#variable7d16b540]].getStartPC();
  int length = [[#variable7d16b540]].getLength();
  final char[] typeName = Signature.toCharArray( [[#variable7d16b540]]. [[#variable7d16b380]]());
  CharOperation.replace(typeName, '/', '.');
  buffer.append(Messages.bind(Messages.classfileformat_localvariabletableentry, new String[] {
                                                                                               Integer.toString(startPC),
                                                                                               Integer.toString(startPC + length),
                                                                                               new String( [[#variable7d16b540]].getName()),
                                                                                               Integer.toString(index),
                                                                                               new String(returnClassName(typeName, '.', mode))
                                                                                             } ));
  writeNewLine(buffer, lineSeparator, tabNumberForLocalVariableAttribute + 1);
}
 [[#variableb7c1f480]]  [[#variable7d16b540]]= [[#variableb7c1f320]][ [[#variableb7c1f4c0]] - 1];
int index = [[#variable7d16b540]].getIndex();
int startPC = [[#variable7d16b540]].getStartPC();
int length = [[#variable7d16b540]].getLength();
final char[] typeName = Signature.toCharArray( [[#variable7d16b540]]. [[#variable7d16b380]]());
CharOperation.replace(typeName, '/', '.');
buffer.append(Messages.bind(Messages.classfileformat_localvariabletableentry, new String[] {
                                                                                             Integer.toString(startPC),
                                                                                             Integer.toString(startPC + length),
                                                                                             new String( [[#variable7d16b540]].getName()),
                                                                                             Integer.toString(index),
                                                                                             new String(returnClassName(typeName, '.', mode))
                                                                                           } ));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b7c1f4c0]]
localVariableAttributeLength 
12[[#b7c1f4c0]]
localVariableTypeTableLength 
21[[#b7c1f480]]
ILocalVariableTableEntry 
22[[#b7c1f480]]
ILocalVariableTypeTableEntry 
31[[#7d16b540]]
localVariableTableEntry 
32[[#7d16b540]]
localVariableTypeTableEntry 
41[[#b7c1f320]]
localVariableTableEntries 
42[[#b7c1f320]]
localVariableTypeTableEntries 
51[[#7d16b380]]
getDescriptor 
52[[#7d16b380]]
getSignature