Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 5 | 0.984 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 4314 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java |
2 | 19 | 4335 | 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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6365c8e0]] | invokeStringConcatenationDefaultConstructor |
1 | 2 | [[#6365c8e0]] | invokeStringConcatenationStringConstructor |
2 | 1 | [[#6365c840]] | "\t\tinvokespecial: java.lang.StringBuilder.<init>()V" |
2 | 2 | [[#6365c840]] | "\t\tjava.lang.StringBuilder.<init>(Ljava.lang.String;)V" |
3 | 1 | [[#6365c7c0]] | "\t\tinvokespecial: java.lang.StringBuffer.<init>()V" |
3 | 2 | [[#6365c7c0]] | "\t\tjava.lang.StringBuffer.<init>(Ljava.lang.String;)V" |
4 | 1 | [[#6365c740]] | 0 |
4 | 2 | [[#6365c740]] | 1 |
5 | 1 | [[#6365c4a0]] | DefaultConstructorSignature |
5 | 2 | [[#6365c4a0]] | StringConstructorSignature |