CloneSet1186


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21210.977statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121279
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/FieldReference.java
225503
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SingleNameReference.java
Clone Instance
1
Line Count
21
Source Line
279
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/FieldReference.java

        switch (operationTypeID = (implicitConversion&  IMPLICIT_CONVERSION_MASK) >> 4) {
                case T_JavaLangString:
                case T_JavaLangObject:
                case T_undefined:
                        codeStream.generateStringConcatenationAppend(currentScope, null, expression);
                        break;
                default:
                        if (this.genericCast != null)
                                codeStream.checkcast(this.genericCast);
                        // promote the array reference to the suitable operation type
                        codeStream.generateImplicitConversion(implicitConversion);
                        // generate the increment value (will by itself  be promoted to the operation value)
                        if (expression == IntLiteral.One) { // prefix operation
                                codeStream.generateConstant(expression.constant, 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
25
Source Line
503
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SingleNameReference.java

                switch (operationTypeID = (implicitConversion&  IMPLICIT_CONVERSION_MASK) >> 4) {
                        case T_JavaLangString:
                        case T_JavaLangObject:
                        case T_undefined:
                                // we enter here if the single name reference is a field of type java.lang.String or if the type of the 
                                // operation is java.lang.Object
                                // For example: o = o + ""; // where the compiled type of o is java.lang.Object.
                                codeStream.generateStringConcatenationAppend(currentScope, null, expression);
                                // no need for generic cast on previous #getfield since using Object string buffer methods.                     
                                break;
                        default:
                                // promote the array reference to the suitable operation type
                                if (this.genericCast != null)
                                        codeStream.checkcast(this.genericCast);
                                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: 1Parameter Bindings

switch (operationTypeID = (implicitConversion&IMPLICIT_CONVERSION_MASK) >> 4) {
  case T_JavaLangString:
  case T_JavaLangObject:
  case T_undefined:
    // we enter here if the single name reference is a field of type java.lang.String or if the type of the 
    // operation is java.lang.Object
    // For example: o = o + ""; // where the compiled type of o is java.lang.Object.
    codeStream.generateStringConcatenationAppend(currentScope, null, expression);
    // no need for generic cast on previous #getfield since using Object string buffer methods.                     
    break;
  default:
    // promote the array reference to the suitable operation type
    if (this.genericCast != null)
      codeStream.checkcast(this.genericCast);
    // promote the array reference to the suitable operation type
    codeStream.generateImplicitConversion( [[#variableba2e85e0]]);
    // generate the increment value (will by itself  be promoted to the operation value)
    if (expression == IntLiteral.One) { // prefix operation
      codeStream.generateConstant(expression.constant,  [[#variableba2e85e0]]);
    }
    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
11[[#ba2e85e0]]
implicitConversion 
12[[#ba2e85e0]]
this.implicitConversion