CloneSet451


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20410.952statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120124
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ArrayReference.java
220137
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetFieldReference.java
320139
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetQualifiedNameReference.java
420375
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetSingleNameReference.java
Clone Instance
1
Line Count
20
Source Line
124
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ArrayReference.java

                int operationTypeID;
                switch (operationTypeID = (implicitConversion&  IMPLICIT_CONVERSION_MASK) >> 4) {
                        case T_JavaLangString:
                        case T_JavaLangObject:
                        case T_undefined:
                                codeStream.generateStringConcatenationAppend(currentScope, null, expression);
                                break;
                        default:
                                // 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
20
Source Line
137
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetFieldReference.java

                int operationTypeID;
                switch (operationTypeID = (this.implicitConversion&  IMPLICIT_CONVERSION_MASK) >> 4) {
                        case T_JavaLangString:
                        case T_JavaLangObject:
                        case T_undefined:
                                codeStream.generateStringConcatenationAppend(currentScope, null, expression);
                                break;
                        default:
                                // 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
3
Line Count
20
Source Line
139
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetQualifiedNameReference.java

                // the last field access is a write access
                // perform the actual compound operation
                int operationTypeID;
                switch (operationTypeID = (this.implicitConversion&  IMPLICIT_CONVERSION_MASK) >> 4) {
                        case T_JavaLangString:
                        case T_JavaLangObject:
                        case T_undefined:
                                codeStream.generateStringConcatenationAppend(currentScope, null, expression);
                                break;
                        default:
                                // 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
4
Line Count
20
Source Line
375
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetSingleNameReference.java

        // perform the actual compound operation
        int operationTypeID;
        switch (operationTypeID = (this.implicitConversion&  IMPLICIT_CONVERSION_MASK) >> 4) {
                case T_JavaLangString:
                case T_JavaLangObject:
                case T_undefined:
                        codeStream.generateStringConcatenationAppend(currentScope, null, expression);
                        break;
                default:
                        // 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: 1Parameter Bindings

// the last field access is a write access
// perform the actual compound operation
int operationTypeID;
switch (operationTypeID = ( [[#variableb3a6d5c0]]&IMPLICIT_CONVERSION_MASK) >> 4) {
  case T_JavaLangString:
  case T_JavaLangObject:
  case T_undefined:
    codeStream.generateStringConcatenationAppend(currentScope, null, expression);
    break;
  default:
    // promote the array reference to the suitable operation type
    codeStream.generateImplicitConversion( [[#variableb3a6d5c0]]);
    // generate the increment value (will by itself  be promoted to the operation value)
    if (expression == IntLiteral.One) { // prefix operation
      codeStream.generateConstant(expression.constant,  [[#variableb3a6d5c0]]);
    }
    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[[#b3a6d5c0]]
implicitConversion 
12[[#b3a6d5c0]]
this.implicitConversion 
13[[#b3a6d5c0]]
this.implicitConversion 
14[[#b3a6d5c0]]
this.implicitConversion