CloneSet1685


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9340.971class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19298
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java
29451
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java
39674
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java
Clone Instance
1
Line Count
9
Source Line
298
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java

/*
 * @see IType#getFields()
 */
public IField[] getFields() throws JavaModelException {
        ArrayList list = getChildrenOfType(FIELD);
        int size;
        if ((size = list.size()) == 0) {
                return NO_FIELDS;
        }
        else   {
                IField[] array = new IField[size];
                list.toArray(array);
                return array;
        }
}


Clone Instance
2
Line Count
9
Source Line
451
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java

/*
 * @see IType#getMethods()
 */
public IMethod[] getMethods() throws JavaModelException {
        ArrayList list = getChildrenOfType(METHOD);
        int size;
        if ((size = list.size()) == 0) {
                return NO_METHODS;
        }
        else   {
                IMethod[] array = new IMethod[size];
                list.toArray(array);
                return array;
        }
}


Clone Instance
3
Line Count
9
Source Line
674
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java

/*
 * @see IType#getTypes()
 */
public IType[] getTypes() throws JavaModelException {
        ArrayList list = getChildrenOfType(TYPE);
        int size;
        if ((size = list.size()) == 0) {
                return NO_TYPES;
        }
        else   {
                IType[] array = new IType[size];
                list.toArray(array);
                return array;
        }
}


Clone AbstractionParameter Count: 4Parameter Bindings

/*
 * @see IType#getFields()
 */
/*
 * @see IType#getMethods()
 */
/*
 * @see IType#getTypes()
 */
public [[#variable92bf83c0]][]  [[#variable92bf8320]]() throws JavaModelException {
  ArrayList list = getChildrenOfType( [[#variable9c663ea0]]);
  int size;
  if ((size = list.size()) == 0) {
    return [[#variable92bf83a0]];
  }
  else {
     [[#variable92bf83c0]][] array = new [[#variable92bf83c0]][size];
    list.toArray(array);
    return array;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#92bf83c0]]
IField 
12[[#92bf83c0]]
IMethod 
13[[#92bf83c0]]
IType 
21[[#92bf8320]]
getFields 
22[[#92bf8320]]
getMethods 
23[[#92bf8320]]
getTypes 
31[[#9c663ea0]]
FIELD 
32[[#9c663ea0]]
METHOD 
33[[#9c663ea0]]
TYPE 
41[[#92bf83a0]]
NO_FIELDS 
42[[#92bf83a0]]
NO_METHODS 
43[[#92bf83a0]]
NO_TYPES