CloneSet2188


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9250.960class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1977
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/SimpleSet.java
2950
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/StringSet.java
Clone Instance
1
Line Count
9
Source Line
77
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/SimpleSet.java

public boolean includes(Object object) {
        int length = values.length;
        int index = (object.hashCode()&  0x7fffffff) % length;
        Object current;
        while ((current = values[index]) != null) {
                if (current.equals(object)) return true;
                if ( ++index == length)index = 0;
        }
        return false;
}


Clone Instance
2
Line Count
9
Source Line
50
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/StringSet.java

public boolean includes(String value) {
        int length = values.length;
        int index = (value.hashCode()&  0x7fffffff) % length;
        String current;
        while ((current = this.values[index]) != null) {
                if (value.equals(current)) return true;
                if ( ++index == length)index = 0;
        }
        return false;
}


Clone AbstractionParameter Count: 5Parameter Bindings

public boolean includes( [[#variableba04dc20]]  [[#variableba04db80]]) {
  int length = values.length;
  int index = ( [[#variableba04db80]].hashCode()&0x7fffffff) % length;
   [[#variableba04dc20]] current;
  while ((current = [[#variableba04db20]][index]) != null) {
    if ( [[#variableba04dac0]].equals( [[#variableba04da40]]))
      return true;
    if ( ++index == length)
      index = 0;
  }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ba04dc20]]
Object 
12[[#ba04dc20]]
String 
21[[#ba04db80]]
object 
22[[#ba04db80]]
value 
31[[#ba04db20]]
values 
32[[#ba04db20]]
this.values 
41[[#ba04dac0]]
current 
42[[#ba04dac0]]
value 
51[[#ba04da40]]
object 
52[[#ba04da40]]
current