CloneSet291


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
29230.963statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
131884
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java
2298217
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
Clone Instance
1
Line Count
31
Source Line
884
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java

        TypeReference[][] typeArguments = new TypeReference[numberOfIdentifiers][];
        char[][] tokens = new char[numberOfIdentifiers][];
        long[] positions = new long[numberOfIdentifiers];
        int index = numberOfIdentifiers;
        int currentIdentifiersLength = identifierLength;
        while (index > 0) {
                int currentTypeArgumentsLength = this.genericsLengthStack[this.genericsLengthPtr-- ];
                if (currentTypeArgumentsLength != 0) {
                        this.genericsPtr -= currentTypeArgumentsLength;
                        System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments[index - 1] = new TypeReference[currentTypeArgumentsLength], 0, currentTypeArgumentsLength);
                }
                switch (currentIdentifiersLength) {
                        case 1:
                                // we are in a case A<B>.C<D> or A<B>.C<D>
                                tokens[index - 1] = this.identifierStack[this.identifierPtr];
                                positions[index - 1] = this.identifierPositionStack[this.identifierPtr-- ];
                                break;
                        default:
                                // we are in a case A.B.C<B>.C<D> or A.B.C<B>...
                                this.identifierPtr -= currentIdentifiersLength;
                                System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, index - currentIdentifiersLength, currentIdentifiersLength);
                                System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, index - currentIdentifiersLength, currentIdentifiersLength);
                      }
                index -= currentIdentifiersLength;
                if (index > 0) {
                        currentIdentifiersLength = this.identifierLengthStack[this.identifierLengthPtr-- ];
                }
        }

        // remove completion token
        int realLength = numberOfIdentifiers;


Clone Instance
2
Line Count
29
Source Line
8217
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

                TypeReference[][] typeArguments = new TypeReference[numberOfIdentifiers][];
                char[][] tokens = new char[numberOfIdentifiers][];
                long[] positions = new long[numberOfIdentifiers];
                int index = numberOfIdentifiers;
                int currentIdentifiersLength = identifierLength;
                while (index > 0) {
                        int currentTypeArgumentsLength = this.genericsLengthStack[this.genericsLengthPtr-- ];
                        if (currentTypeArgumentsLength != 0) {
                                this.genericsPtr -= currentTypeArgumentsLength;
                                System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments[index - 1] = new TypeReference[currentTypeArgumentsLength], 0, currentTypeArgumentsLength);
                        }
                        switch (currentIdentifiersLength) {
                                case 1:
                                        // we are in a case A<B>.C<D> or A<B>.C<D>
                                        tokens[index - 1] = this.identifierStack[this.identifierPtr];
                                        positions[index - 1] = this.identifierPositionStack[this.identifierPtr-- ];
                                        break;
                                default:
                                        // we are in a case A.B.C<B>.C<D> or A.B.C<B>...
                                        this.identifierPtr -= currentIdentifiersLength;
                                        System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, index - currentIdentifiersLength, currentIdentifiersLength);
                                        System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, index - currentIdentifiersLength, currentIdentifiersLength);
                              }
                        index -= currentIdentifiersLength;
                        if (index > 0) {
                                currentIdentifiersLength = this.identifierLengthStack[this.identifierLengthPtr-- ];
                        }
                }
                ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference = new ParameterizedQualifiedTypeReference(tokens, typeArguments, dim, positions);


Clone AbstractionParameter Count: 3Parameter Bindings

TypeReference[][] typeArguments = new TypeReference[numberOfIdentifiers][];
char[][] tokens = new char[numberOfIdentifiers][];
long[] positions = new long[numberOfIdentifiers];
int index = numberOfIdentifiers;
int currentIdentifiersLength = identifierLength;
while (index > 0) {
  int currentTypeArgumentsLength = this.genericsLengthStack[this.genericsLengthPtr-- ];
  if (currentTypeArgumentsLength != 0) {
    this.genericsPtr -= currentTypeArgumentsLength;
    System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments[index - 1] = new TypeReference[currentTypeArgumentsLength], 0, currentTypeArgumentsLength);
  }
  switch (currentIdentifiersLength) {
    case 1:
      // we are in a case A<B>.C<D> or A<B>.C<D>
      tokens[index - 1] = this.identifierStack[this.identifierPtr];
      positions[index - 1] = this.identifierPositionStack[this.identifierPtr-- ];
      break;
    default:
      // we are in a case A.B.C<B>.C<D> or A.B.C<B>...
      this.identifierPtr -= currentIdentifiersLength;
      System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, index - currentIdentifiersLength, currentIdentifiersLength);
      System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, index - currentIdentifiersLength, currentIdentifiersLength);
  }
  index -= currentIdentifiersLength;
  if (index > 0) {
    currentIdentifiersLength = this.identifierLengthStack[this.identifierLengthPtr-- ];
  }
}
 [[#variable5a1c1ce0]]  [[#variableb9b28540]]= [[#variableb9c63aa0]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5a1c1ce0]]
ParameterizedQualifiedTypeReference 
12[[#5a1c1ce0]]
// remove completion token
int 
21[[#b9b28540]]
parameterizedQualifiedTypeReference 
22[[#b9b28540]]
realLength 
31[[#b9c63aa0]]
new ParameterizedQualifiedTypeReference(tokens, typeArguments, dim, positions) 
32[[#b9c63aa0]]
numberOfIdentifiers