CloneSet1447


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15210.974class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11548
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/CompoundNameVector.java
21588
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/TypeVector.java
Clone Instance
1
Line Count
15
Source Line
48
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/CompoundNameVector.java

public char[][] remove(char[][] element) {
        // assumes only one occurrence of the element exists
        for (int i = size; --i >= 0;)
                if (element == elements[i]) {
                        // shift the remaining elements down one spot
                        System.arraycopy(elements, i + 1, elements, i, --size - i);
                        elements[size] = null;
                        return element;
                }
        return null;
}

public void removeAll() {
        for (int i = size; --i >= 0;)
                elements[i] = null;
        size = 0;
}


Clone Instance
2
Line Count
15
Source Line
88
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/TypeVector.java

public IType remove(IType element) {
        // assumes only one occurrence of the element exists
        for (int i = size; --i >= 0;)
                if (element == elements[i]) {
                        // shift the remaining elements down one spot
                        System.arraycopy(elements, i + 1, elements, i, --size - i);
                        elements[size] = null;
                        return element;
                }
        return null;
}

public void removeAll() {
        for (int i = size; --i >= 0;)
                elements[i] = null;
        size = 0;
}


Clone AbstractionParameter Count: 1Parameter Bindings

public [[#variable9a9b7740]] remove( [[#variable9a9b7740]] element) {
  // assumes only one occurrence of the element exists
  for (int i = size; --i >= 0;)
    if (element == elements[i]) {
      // shift the remaining elements down one spot
      System.arraycopy(elements, i + 1, elements, i, --size - i);
      elements[size] = null;
      return element;
    }
  return null;
}

public void removeAll() {
  for (int i = size; --i >= 0;)
    elements[i] = null;
  size = 0;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9a9b7740]]
char[][] 
12[[#9a9b7740]]
IType