CloneSet1724


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20250.984class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1204314
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
2194335
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
Clone Instance
1
Line Count
20
Source Line
4314
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java

public void invokeStringConcatenationDefaultConstructor() {
        // invokespecial: java.lang.StringBuffer.<init>()V
        if (DEBUG) {
                if (this.targetLevel >= ClassFileConstants.JDK1_5) {
                        System.out.println(position + "\t\tinvokespecial: java.lang.StringBuilder.<init>()V"); //$NON-NLS-1$
                }
                else   {
                        System.out.println(position + "\t\tinvokespecial: java.lang.StringBuffer.<init>()V"); //$NON-NLS-1$
                }
        }
        char[] declaringClass = ConstantPool.JavaLangStringBufferConstantPoolName;
        if (this.targetLevel >= ClassFileConstants.JDK1_5) {
                declaringClass = ConstantPool.JavaLangStringBuilderConstantPoolName;
        }
        this.invoke(
                        Opcodes.OPC_invokespecial, 
                        0, // argCount
                         0, // return type size
                         declaringClass, 
                        ConstantPool.Init, 
                        ConstantPool.DefaultConstructorSignature);
}


Clone Instance
2
Line Count
19
Source Line
4335
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java

public void invokeStringConcatenationStringConstructor() {
        if (DEBUG) {
                if (this.targetLevel >= ClassFileConstants.JDK1_5) {
                        System.out.println(position + "\t\tjava.lang.StringBuilder.<init>(Ljava.lang.String;)V"); //$NON-NLS-1$
                }
                else   {
                        System.out.println(position + "\t\tjava.lang.StringBuffer.<init>(Ljava.lang.String;)V"); //$NON-NLS-1$
                }
        }
        char[] declaringClass = ConstantPool.JavaLangStringBufferConstantPoolName;
        if (this.targetLevel >= ClassFileConstants.JDK1_5) {
                declaringClass = ConstantPool.JavaLangStringBuilderConstantPoolName;
        }
        this.invoke(
                        Opcodes.OPC_invokespecial, 
                        1, // argCount
                         0, // return type size
                         declaringClass, 
                        ConstantPool.Init, 
                        ConstantPool.StringConstructorSignature);
}


Clone AbstractionParameter Count: 5Parameter Bindings

public void [[#variable6365c8e0]]() {
  // invokespecial: java.lang.StringBuffer.<init>()V
  if (DEBUG) {
    if (this.targetLevel >= ClassFileConstants.JDK1_5) {
      System.out.println(position +  [[#variable6365c840]]); //$NON-NLS-1$
    }
    else {
      System.out.println(position +  [[#variable6365c7c0]]); //$NON-NLS-1$
    }
  }
  char[] declaringClass = ConstantPool.JavaLangStringBufferConstantPoolName;
  if (this.targetLevel >= ClassFileConstants.JDK1_5) {
    declaringClass = ConstantPool.JavaLangStringBuilderConstantPoolName;
  }
  this.invoke(Opcodes.OPC_invokespecial,  [[#variable6365c740]], // argCount
               0, // return type size
               declaringClass, ConstantPool.Init, ConstantPool. [[#variable6365c4a0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6365c8e0]]
invokeStringConcatenationDefaultConstructor 
12[[#6365c8e0]]
invokeStringConcatenationStringConstructor 
21[[#6365c840]]
"\t\tinvokespecial: java.lang.StringBuilder.<init>()V" 
22[[#6365c840]]
"\t\tjava.lang.StringBuilder.<init>(Ljava.lang.String;)V" 
31[[#6365c7c0]]
"\t\tinvokespecial: java.lang.StringBuffer.<init>()V" 
32[[#6365c7c0]]
"\t\tjava.lang.StringBuffer.<init>(Ljava.lang.String;)V" 
41[[#6365c740]]
0 
42[[#6365c740]]
1 
51[[#6365c4a0]]
DefaultConstructorSignature 
52[[#6365c4a0]]
StringConstructorSignature