CloneSet553


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22210.998statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12281
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetAllocationExpression.java
222106
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetMessageSend.java
Clone Instance
1
Line Count
22
Source Line
81
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetAllocationExpression.java

                // generate arguments
                if (this.arguments != null) {
                        int argsLength = this.arguments.length;
                        codeStream.generateInlinedValue(argsLength);
                        codeStream.newArray(currentScope.createArrayType(currentScope.getType(TypeConstants.JAVA_LANG_OBJECT, 3), 1));
                        codeStream.dup();
                        for (int i = 0; i < argsLength; i++) {
                                codeStream.generateInlinedValue(i);
                                this.arguments[i].generateCode(currentScope, codeStream, true);
                                TypeBinding parameterBinding = this.codegenBinding.parameters[i];
                                if (parameterBinding.isBaseType() && parameterBinding != TypeBinding.NULL) {
                                        codeStream.generateBoxingConversion(this.codegenBinding.parameters[i].id);
                                }
                                codeStream.aastore();
                                if (i < argsLength - 1) {
                                        codeStream.dup();
                                }
                        }
                }
                else   {
                        codeStream.generateInlinedValue(0);
                        codeStream.newArray(currentScope.createArrayType(currentScope.getType(TypeConstants.JAVA_LANG_OBJECT, 3), 1));
                }
                codeStream.invokeJavaLangReflectConstructorNewInstance();


Clone Instance
2
Line Count
22
Source Line
106
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetMessageSend.java

                // generate arguments
                if (this.arguments != null) {
                        int argsLength = this.arguments.length;
                        codeStream.generateInlinedValue(argsLength);
                        codeStream.newArray(currentScope.createArrayType(currentScope.getType(TypeConstants.JAVA_LANG_OBJECT, 3), 1));
                        codeStream.dup();
                        for (int i = 0; i < argsLength; i++) {
                                codeStream.generateInlinedValue(i);
                                this.arguments[i].generateCode(currentScope, codeStream, true);
                                TypeBinding parameterBinding = this.codegenBinding.parameters[i];
                                if (parameterBinding.isBaseType() && parameterBinding != TypeBinding.NULL) {
                                        codeStream.generateBoxingConversion(this.codegenBinding.parameters[i].id);
                                }
                                codeStream.aastore();
                                if (i < argsLength - 1) {
                                        codeStream.dup();
                                }
                        }
                }
                else   {
                        codeStream.generateInlinedValue(0);
                        codeStream.newArray(currentScope.createArrayType(currentScope.getType(TypeConstants.JAVA_LANG_OBJECT, 3), 1));
                }
                codeStream.invokeJavaLangReflectMethodInvoke();


Clone AbstractionParameter Count: 1Parameter Bindings

// generate arguments
if (this.arguments != null) {
  int argsLength = this.arguments.length;
  codeStream.generateInlinedValue(argsLength);
  codeStream.newArray(currentScope.createArrayType(currentScope.getType(TypeConstants.JAVA_LANG_OBJECT, 3), 1));
  codeStream.dup();
  for (int i = 0; i < argsLength; i++) {
    codeStream.generateInlinedValue(i);
    this.arguments[i].generateCode(currentScope, codeStream, true);
    TypeBinding parameterBinding = this.codegenBinding.parameters[i];
    if (parameterBinding.isBaseType() && parameterBinding != TypeBinding.NULL) {
      codeStream.generateBoxingConversion(this.codegenBinding.parameters[i].id);
    }
    codeStream.aastore();
    if (i < argsLength - 1) {
      codeStream.dup();
    }
  }
}
else {
  codeStream.generateInlinedValue(0);
  codeStream.newArray(currentScope.createArrayType(currentScope.getType(TypeConstants.JAVA_LANG_OBJECT, 3), 1));
}
codeStream. [[#variable5efe8380]]();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5efe8380]]
invokeJavaLangReflectMethodInvoke 
12[[#5efe8380]]
invokeJavaLangReflectConstructorNewInstance