CloneSet150


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
63210.995statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
163232
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/BinaryIndexer.java
263408
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/BinaryIndexer.java
Clone Instance
1
Line Count
63
Source Line
232
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/BinaryIndexer.java

                int arrayDim = 0;
                for (int i = 0, max = signature.length; i < max; i++) {
                        switch (signature[i]) {
                                case 'B':
                                        if (arrayDim > 0)
                                                return convertToArrayType(BYTE, arrayDim);
                                        return BYTE;

                                case 'C':
                                        if (arrayDim > 0)
                                                return convertToArrayType(CHAR, arrayDim);
                                        return CHAR;

                                case 'D':
                                        if (arrayDim > 0)
                                                return convertToArrayType(DOUBLE, arrayDim);
                                        return DOUBLE;

                                case 'F':
                                        if (arrayDim > 0)
                                                return convertToArrayType(FLOAT, arrayDim);
                                        return FLOAT;

                                case 'I':
                                        if (arrayDim > 0)
                                        return convertToArrayType(INT, arrayDim);
                                        return INT;

                                case 'J':
                                        if (arrayDim > 0)
                                                return convertToArrayType(LONG, arrayDim);
                                        return LONG;

                                case 'L':
                                        int indexOfSemiColon = CharOperation.indexOf(';', signature, i + 1);
                                        if (indexOfSemiColon == -1) throw new ClassFormatException(ClassFormatException.ErrInvalidMethodSignature);
                                        if (arrayDim > 0) {
                                                return convertToArrayType(replace('/', '.', CharOperation.subarray(signature, i + 1, indexOfSemiColon)), arrayDim);
                                        }
                                        return replace('/', '.', CharOperation.subarray(signature, i + 1, indexOfSemiColon));

                                case 'S':
                                        if (arrayDim > 0)
                                                return convertToArrayType(SHORT, arrayDim);
                                        return SHORT;

                                case 'Z':
                                        if (arrayDim > 0)
                                                return convertToArrayType(BOOLEAN, arrayDim);
                                        return BOOLEAN;

                                case 'V':
                                        return VOID;

                                case '[':
                                        arrayDim++;
                                        break;

                                default:
                                        throw new ClassFormatException(ClassFormatException.ErrInvalidMethodSignature);
                              }
                }
                return null;


Clone Instance
2
Line Count
63
Source Line
408
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/BinaryIndexer.java

                int arrayDim = 0;
                for (int i = indexOfClosingParen + 1, max = signature.length; i < max; i++) {
                        switch (signature[i]) {
                                case 'B':
                                        if (arrayDim > 0)
                                                return convertToArrayType(BYTE, arrayDim);
                                        return BYTE;

                                case 'C':
                                        if (arrayDim > 0)
                                                return convertToArrayType(CHAR, arrayDim);
                                        return CHAR;

                                case 'D':
                                        if (arrayDim > 0)
                                                return convertToArrayType(DOUBLE, arrayDim);
                                        return DOUBLE;

                                case 'F':
                                        if (arrayDim > 0)
                                                return convertToArrayType(FLOAT, arrayDim);
                                        return FLOAT;

                                case 'I':
                                        if (arrayDim > 0)
                                                return convertToArrayType(INT, arrayDim);
                                        return INT;

                                case 'J':
                                        if (arrayDim > 0)
                                                return convertToArrayType(LONG, arrayDim);
                                        return LONG;

                                case 'L':
                                        int indexOfSemiColon = CharOperation.indexOf(';', signature, i + 1);
                                        if (indexOfSemiColon == -1) throw new ClassFormatException(ClassFormatException.ErrInvalidMethodSignature);
                                        if (arrayDim > 0) {
                                                return convertToArrayType(replace('/', '.', CharOperation.subarray(signature, i + 1, indexOfSemiColon)), arrayDim);
                                        }
                                        return replace('/', '.', CharOperation.subarray(signature, i + 1, indexOfSemiColon));

                                case 'S':
                                        if (arrayDim > 0)
                                                return convertToArrayType(SHORT, arrayDim);
                                        return SHORT;

                                case 'Z':
                                        if (arrayDim > 0)
                                                return convertToArrayType(BOOLEAN, arrayDim);
                                        return BOOLEAN;

                                case 'V':
                                        return VOID;

                                case '[':
                                        arrayDim++;
                                        break;

                                default:
                                        throw new ClassFormatException(ClassFormatException.ErrInvalidMethodSignature);
                              }
                }
                return null;


Clone AbstractionParameter Count: 1Parameter Bindings

int arrayDim = 0;
for (int i = [[#variable9547f780]], max = signature.length; i < max; i++) {
  switch (signature[i]) {
    case 'B':
      if (arrayDim > 0)
        return convertToArrayType(BYTE, arrayDim);
      return BYTE;
    case 'C':
      if (arrayDim > 0)
        return convertToArrayType(CHAR, arrayDim);
      return CHAR;
    case 'D':
      if (arrayDim > 0)
        return convertToArrayType(DOUBLE, arrayDim);
      return DOUBLE;
    case 'F':
      if (arrayDim > 0)
        return convertToArrayType(FLOAT, arrayDim);
      return FLOAT;
    case 'I':
      if (arrayDim > 0)
        return convertToArrayType(INT, arrayDim);
      return INT;
    case 'J':
      if (arrayDim > 0)
        return convertToArrayType(LONG, arrayDim);
      return LONG;
    case 'L':
      int indexOfSemiColon = CharOperation.indexOf(';', signature, i + 1);
      if (indexOfSemiColon == -1)
        throw new ClassFormatException(ClassFormatException.ErrInvalidMethodSignature);
      if (arrayDim > 0) {
        return convertToArrayType(replace('/', '.', CharOperation.subarray(signature, i + 1, indexOfSemiColon)), arrayDim);
      }
      return replace('/', '.', CharOperation.subarray(signature, i + 1, indexOfSemiColon));
    case 'S':
      if (arrayDim > 0)
        return convertToArrayType(SHORT, arrayDim);
      return SHORT;
    case 'Z':
      if (arrayDim > 0)
        return convertToArrayType(BOOLEAN, arrayDim);
      return BOOLEAN;
    case 'V':
      return VOID;
    case '[':
      arrayDim++;
      break;
    default:
      throw new ClassFormatException(ClassFormatException.ErrInvalidMethodSignature);
  }
}
return null;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9547f780]]
indexOfClosingParen + 1 
12[[#9547f780]]
0