Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 3 | 4 | 0.980 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 526 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/BinaryIndexer.java |
2 | 4 | 532 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/BinaryIndexer.java |
3 | 4 | 609 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/BinaryIndexer.java |
| ||||
private char[] extractClassName(int[] constantPoolOffsets, ClassFileReader reader, int index) { // the entry at i has to be a field ref or a method/interface method ref. int class_index = reader.u2At(constantPoolOffsets[index] + 1); int utf8Offset = constantPoolOffsets[reader.u2At(constantPoolOffsets[class_index] + 1)]; return reader.utf8At(utf8Offset + 3, reader.u2At(utf8Offset + 1)); } |
| ||||
private char[] extractName(int[] constantPoolOffsets, ClassFileReader reader, int index) { int nameAndTypeIndex = reader.u2At(constantPoolOffsets[index] + 3); int utf8Offset = constantPoolOffsets[reader.u2At(constantPoolOffsets[nameAndTypeIndex] + 1)]; return reader.utf8At(utf8Offset + 3, reader.u2At(utf8Offset + 1)); } |
| ||||
private char[] extractType(int[] constantPoolOffsets, ClassFileReader reader, int index) { int constantPoolIndex = reader.u2At(constantPoolOffsets[index] + 3); int utf8Offset = constantPoolOffsets[reader.u2At(constantPoolOffsets[constantPoolIndex] + 3)]; return reader.utf8At(utf8Offset + 3, reader.u2At(utf8Offset + 1)); } |
| |||
private char[] [[#variableba8acd80]](int[] constantPoolOffsets, ClassFileReader reader, int index) { // the entry at i has to be a field ref or a method/interface method ref. int [[#variableba8acd20]]= reader.u2At(constantPoolOffsets[index] + [[#variableba8accc0]]); int utf8Offset = constantPoolOffsets[reader.u2At(constantPoolOffsets[ [[#variableba8acd20]]] + [[#variableba8acc40]])]; return reader.utf8At(utf8Offset + 3, reader.u2At(utf8Offset + 1)); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#ba8acd80]] | extractClassName |
1 | 2 | [[#ba8acd80]] | extractName |
1 | 3 | [[#ba8acd80]] | extractType |
2 | 1 | [[#ba8acd20]] | class_index |
2 | 2 | [[#ba8acd20]] | nameAndTypeIndex |
2 | 3 | [[#ba8acd20]] | constantPoolIndex |
3 | 1 | [[#ba8accc0]] | 1 |
3 | 2 | [[#ba8accc0]] | 3 |
3 | 3 | [[#ba8accc0]] | 3 |
4 | 1 | [[#ba8acc40]] | 1 |
4 | 2 | [[#ba8acc40]] | 1 |
4 | 3 | [[#ba8acc40]] | 3 |