CloneSet472


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14350.956class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114110
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceTypeElementInfo.java
214188
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceTypeElementInfo.java
314221
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceTypeElementInfo.java
Clone Instance
1
Line Count
14
Source Line
110
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceTypeElementInfo.java

public SourceField[] getFieldHandles() {
        int length = this.children.length;
        if (length == 0) return NO_FIELDS;
        SourceField[] fields = new SourceField[length];
        int fieldIndex = 0;
        for (int i = 0; i < length; i++) {
                IJavaElement child = this.children[i];
                if (child instanceof SourceField)
                        fields[fieldIndex++ ] = (SourceField) child;
        }
        if (fieldIndex == 0) return NO_FIELDS;
        if (fieldIndex < length)
                System.arraycopy(fields, 0, fields = new SourceField[fieldIndex], 0, fieldIndex);
        return fields;
}


Clone Instance
2
Line Count
14
Source Line
188
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceTypeElementInfo.java

public SourceType[] getMemberTypeHandles() {
        int length = this.children.length;
        if (length == 0) return NO_TYPES;
        SourceType[] memberTypes = new SourceType[length];
        int typeIndex = 0;
        for (int i = 0; i < length; i++) {
                IJavaElement child = this.children[i];
                if (child instanceof SourceType)
                        memberTypes[typeIndex++ ] = (SourceType) child;
        }
        if (typeIndex == 0) return NO_TYPES;
        if (typeIndex < length)
                System.arraycopy(memberTypes, 0, memberTypes = new SourceType[typeIndex], 0, typeIndex);
        return memberTypes;
}


Clone Instance
3
Line Count
14
Source Line
221
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceTypeElementInfo.java

public SourceMethod[] getMethodHandles() {
        int length = this.children.length;
        if (length == 0) return NO_METHODS;
        SourceMethod[] methods = new SourceMethod[length];
        int methodIndex = 0;
        for (int i = 0; i < length; i++) {
                IJavaElement child = this.children[i];
                if (child instanceof SourceMethod)
                        methods[methodIndex++ ] = (SourceMethod) child;
        }
        if (methodIndex == 0) return NO_METHODS;
        if (methodIndex < length)
                System.arraycopy(methods, 0, methods = new SourceMethod[methodIndex], 0, methodIndex);
        return methods;
}


Clone AbstractionParameter Count: 5Parameter Bindings

public [[#variableba71a7c0]][]  [[#variableba71a740]]() {
  int length = this.children.length;
  if (length == 0)
    return [[#variableb95abf40]];
   [[#variableba71a7c0]][]  [[#variableba71a640]]= new [[#variableba71a7c0]][length];
  int  [[#variableba71a780]]= 0;
  for (int i = 0; i < length; i++) {
    IJavaElement child = this.children[i];
    if (child instanceof [[#variableba71a7c0]])
       [[#variableba71a640]][ [[#variableba71a780]]++ ] = ( [[#variableba71a7c0]]) child;
  }
  if ( [[#variableba71a780]]== 0)
    return [[#variableb95abf40]];
  if ( [[#variableba71a780]] < length)
    System.arraycopy( [[#variableba71a640]], 0,  [[#variableba71a640]]= new [[#variableba71a7c0]][ [[#variableba71a780]]], 0,  [[#variableba71a780]]);
  return [[#variableba71a640]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ba71a7c0]]
SourceField 
12[[#ba71a7c0]]
SourceType 
13[[#ba71a7c0]]
SourceMethod 
21[[#ba71a740]]
getFieldHandles 
22[[#ba71a740]]
getMemberTypeHandles 
23[[#ba71a740]]
getMethodHandles 
31[[#b95abf40]]
NO_FIELDS 
32[[#b95abf40]]
NO_TYPES 
33[[#b95abf40]]
NO_METHODS 
41[[#ba71a640]]
fields 
42[[#ba71a640]]
memberTypes 
43[[#ba71a640]]
methods 
51[[#ba71a780]]
fieldIndex 
52[[#ba71a780]]
typeIndex 
53[[#ba71a780]]
methodIndex