CloneSet1376


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7430.972class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17124
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/FieldInfo.java
27146
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/FieldInfo.java
37234
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/MethodInfo.java
47265
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/MethodInfo.java
Clone Instance
1
Line Count
7
Source Line
124
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/FieldInfo.java

/**
 * Answer the name of the field.
 * @return char[]
 */
public char[] getName() {
        if (name == null) {
                // read the name
                int utf8Offset = constantPoolOffsets[u2At(2)] - structOffset;
                name = utf8At(utf8Offset + 3, u2At(utf8Offset + 1));
        }
        return name;
}


Clone Instance
2
Line Count
7
Source Line
146
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/FieldInfo.java

/**
 * Answer the resolved name of the receiver's type in the
 * class file format as specified in section 4.3.2 of the Java 2 VM spec.
 *
 * For example:
 *   - java.lang.String is Ljava/lang/String;
 *   - an int is I
 *   - a 2 dimensional array of strings is [[Ljava/lang/String;
 *   - an array of floats is [F
 * @return char[]
 */
public char[] getTypeName() {
        if (descriptor == null) {
                // read the signature
                int utf8Offset = constantPoolOffsets[u2At(4)] - structOffset;
                descriptor = utf8At(utf8Offset + 3, u2At(utf8Offset + 1));
        }
        return descriptor;
}


Clone Instance
3
Line Count
7
Source Line
234
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/MethodInfo.java

/**
 * Answer the receiver's method descriptor which describes the parameter &
 * return types as specified in section 4.3.3 of the Java 2 VM spec.
 *
 * For example:
 *   - int foo(String) is (Ljava/lang/String;)I
 *   - void foo(Object[]) is (I)[Ljava/lang/Object;
 * @return char[]
 */
public char[] getMethodDescriptor() {
        if (descriptor == null) {
                // read the name
                int utf8Offset = constantPoolOffsets[u2At(4)] - structOffset;
                descriptor = utf8At(utf8Offset + 3, u2At(utf8Offset + 1));
        }
        return descriptor;
}


Clone Instance
4
Line Count
7
Source Line
265
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/MethodInfo.java

/**
 * Answer the name of the method.
 *
 * For a constructor, answer <init> & <clinit> for a clinit method.
 * @return char[]
 */
public char[] getSelector() {
        if (name == null) {
                // read the name
                int utf8Offset = constantPoolOffsets[u2At(2)] - structOffset;
                name = utf8At(utf8Offset + 3, u2At(utf8Offset + 1));
        }
        return name;
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Answer the receiver's method descriptor which describes the parameter &
 * return types as specified in section 4.3.3 of the Java 2 VM spec.
 *
 * For example:
 *   - int foo(String) is (Ljava/lang/String;)I
 *   - void foo(Object[]) is (I)[Ljava/lang/Object;
 * @return char[]
 */
/**
 * Answer the name of the method.
 *
 * For a constructor, answer <init> & <clinit> for a clinit method.
 * @return char[]
 */
/**
 * Answer the name of the field.
 * @return char[]
 */
/**
 * Answer the resolved name of the receiver's type in the
 * class file format as specified in section 4.3.2 of the Java 2 VM spec.
 *
 * For example:
 *   - java.lang.String is Ljava/lang/String;
 *   - an int is I
 *   - a 2 dimensional array of strings is [[Ljava/lang/String;
 *   - an array of floats is [F
 * @return char[]
 */
public char[]  [[#variablec0db7640]]() {
  if ( [[#variable56fe7fc0]]== null) {
    // read the name
    // read the signature
    int utf8Offset = constantPoolOffsets[u2At( [[#variablec0db7460]])] - structOffset;
     [[#variable56fe7fc0]]= utf8At(utf8Offset + 3, u2At(utf8Offset + 1));
  }
  return [[#variable56fe7fc0]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c0db7640]]
getMethodDescriptor 
12[[#c0db7640]]
getSelector 
13[[#c0db7640]]
getName 
14[[#c0db7640]]
getTypeName 
21[[#56fe7fc0]]
descriptor 
22[[#56fe7fc0]]
name 
23[[#56fe7fc0]]
name 
24[[#56fe7fc0]]
descriptor 
31[[#c0db7460]]
4 
32[[#c0db7460]]
2 
33[[#c0db7460]]
2 
34[[#c0db7460]]
4