CloneSet542


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
33240.980block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1332424
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Signature.java
2332971
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Util.java
Clone Instance
1
Line Count
33
Source Line
2424
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Signature.java

                                                                                                                                             {
        int length = string.length;
        // need a minimum 2 char
        if (start >= length - 1) {
                throw new IllegalArgumentException();
        }
        char c = string[start];
        if (c != C_ARRAY) {
                throw new IllegalArgumentException();
        }

        int index = start;
        c = string[ ++index];
        while (c == C_ARRAY) {
                // need a minimum 2 char
                if (index >= length - 1) {
                        throw new IllegalArgumentException();
                }
                c = string[ ++index];
        }

        int e = appendTypeSignature(string, index, fullyQualifyTypeNames, buffer);

        for (int i = 1, dims = index - start; i < dims; i++) {
                buffer.append('[').append(']');
        }

        if (isVarArgs) {
                buffer.append('.').append('.').append('.');
        }
        else   {
                buffer.append('[').append(']');
        }
        return e;
                                                                                                                                             }


Clone Instance
2
Line Count
33
Source Line
2971
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Util.java

                                                                                                                               {
                int length = string.length;
                // need a minimum 2 char
                if (start >= length - 1) {
                        throw new IllegalArgumentException();
                }
                char c = string[start];
                if (c != Signature.C_ARRAY) {
                        throw new IllegalArgumentException();
                }

                int index = start;
                c = string[ ++index];
                while (c == Signature.C_ARRAY) {
                        // need a minimum 2 char
                        if (index >= length - 1) {
                                throw new IllegalArgumentException();
                        }
                        c = string[ ++index];
                }

                int e = appendTypeSignatureForAnchor(string, index, buffer, false);

                for (int i = 1, dims = index - start; i < dims; i++) {
                        buffer.append('[').append(']');
                }

                if (isVarArgs) {
                        buffer.append('.').append('.').append('.');
                }
                else   {
                        buffer.append('[').append(']');
                }
                return e;
                                                                                                                               }


Clone AbstractionParameter Count: 4Parameter Bindings

{
  int length = string.length;
  // need a minimum 2 char
  if (start >= length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != [[#variable57a343c0]]) {
    throw new IllegalArgumentException();
  }
  int index = start;
  c = string[ ++index];
  while (c == [[#variable57a343c0]]) {
    // need a minimum 2 char
    if (index >= length - 1) {
      throw new IllegalArgumentException();
    }
    c = string[ ++index];
  }
  int e = [[#variable57a34360]](string, index,  [[#variableb2015300]],  [[#variable57a343a0]]);
  for (int i = 1, dims = index - start; i < dims; i++) {
    buffer.append('[').append(']');
  }
  if (isVarArgs) {
    buffer.append('.').append('.').append('.');
  }
  else {
    buffer.append('[').append(']');
  }
  return e;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#57a343c0]]
Signature.C_ARRAY 
12[[#57a343c0]]
C_ARRAY 
21[[#57a34360]]
appendTypeSignatureForAnchor 
22[[#57a34360]]
appendTypeSignature 
31[[#b2015300]]
buffer 
32[[#b2015300]]
fullyQualifyTypeNames 
41[[#57a343a0]]
false 
42[[#57a343a0]]
buffer