CloneSet1604


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15201.000statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115179
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetFieldReference.java
215180
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetQualifiedNameReference.java
Clone Instance
1
Line Count
15
Source Line
179
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetFieldReference.java

                if ((operationTypeID = (this.implicitConversion&  IMPLICIT_CONVERSION_MASK) >> 4) == T_JavaLangString) {
                        codeStream.generateStringConcatenationAppend(currentScope, null, expression);
                }
                else   {
                        // promote the array reference to the suitable operation type
                        codeStream.generateImplicitConversion(this.implicitConversion);
                        // generate the increment value (will by itself  be promoted to the operation value)
                        if (expression == IntLiteral.One) { // prefix operation
                                codeStream.generateConstant(expression.constant, this.implicitConversion);
                        }
                        else   {
                                expression.generateCode(currentScope, codeStream, true);
                        }
                        // perform the operation
                        codeStream.sendOperator(operator, operationTypeID);
                        // cast the value back to the array reference type
                        codeStream.generateImplicitConversion(assignmentImplicitConversion);
                }


Clone Instance
2
Line Count
15
Source Line
180
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetQualifiedNameReference.java

                if ((operationTypeID = (this.implicitConversion&  IMPLICIT_CONVERSION_MASK) >> 4) == T_JavaLangString) {
                        codeStream.generateStringConcatenationAppend(currentScope, null, expression);
                }
                else   {
                        // promote the array reference to the suitable operation type
                        codeStream.generateImplicitConversion(this.implicitConversion);
                        // generate the increment value (will by itself  be promoted to the operation value)
                        if (expression == IntLiteral.One) { // prefix operation
                                codeStream.generateConstant(expression.constant, this.implicitConversion);
                        }
                        else   {
                                expression.generateCode(currentScope, codeStream, true);
                        }
                        // perform the operation
                        codeStream.sendOperator(operator, operationTypeID);
                        // cast the value back to the array reference type
                        codeStream.generateImplicitConversion(assignmentImplicitConversion);
                }


Clone AbstractionParameter Count: 0Parameter Bindings

if ((operationTypeID = (this.implicitConversion&IMPLICIT_CONVERSION_MASK) >> 4) == T_JavaLangString) {
  codeStream.generateStringConcatenationAppend(currentScope, null, expression);
}
else {
  // promote the array reference to the suitable operation type
  codeStream.generateImplicitConversion(this.implicitConversion);
  // generate the increment value (will by itself  be promoted to the operation value)
  if (expression == IntLiteral.One) { // prefix operation
    codeStream.generateConstant(expression.constant, this.implicitConversion);
  }
  else {
    expression.generateCode(currentScope, codeStream, true);
  }
  // perform the operation
  codeStream.sendOperator(operator, operationTypeID);
  // cast the value back to the array reference type
  codeStream.generateImplicitConversion(assignmentImplicitConversion);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None