CloneSet809


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18220.970statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118182
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter.java
218387
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter.java
Clone Instance
1
Line Count
18
Source Line
182
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter.java

                int typesLength = children.length;
                if (typesLength > 0) {
                        Statement[] statements = new Statement[typesLength];
                        for (int i = 0; i < typesLength; i++) {
                                SourceType type = (SourceType) children[i];
                                TypeDeclaration localType = convert(type, compilationResult);
                                if ((localType.bits&  ASTNode.IsAnonymousType) != 0) {
                                        QualifiedAllocationExpression expression = new QualifiedAllocationExpression(localType);
                                        expression.type = localType.superclass;
                                        localType.superclass = null;
                                        localType.superInterfaces = null;
                                        localType.allocation = expression;
                                        statements[i] = expression;
                                }
                                else   {
                                        statements[i] = localType;
                                }
                        }
                        block.statements = statements;
                }


Clone Instance
2
Line Count
18
Source Line
387
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter.java

                        int typesLength = children.length;
                        if (typesLength != 0) {
                                Statement[] statements = new Statement[typesLength];
                                for (int i = 0; i < typesLength; i++) {
                                        SourceType type = (SourceType) children[i];
                                        TypeDeclaration localType = convert(type, compilationResult);
                                        if ((localType.bits&  ASTNode.IsAnonymousType) != 0) {
                                                QualifiedAllocationExpression expression = new QualifiedAllocationExpression(localType);
                                                expression.type = localType.superclass;
                                                localType.superclass = null;
                                                localType.superInterfaces = null;
                                                localType.allocation = expression;
                                                statements[i] = expression;
                                        }
                                        else   {
                                                statements[i] = localType;
                                        }
                                }
                                method.statements = statements;
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

int typesLength = children.length;
if ( [[#variableb71be280]]) {
  Statement[] statements = new Statement[typesLength];
  for (int i = 0; i < typesLength; i++) {
    SourceType type = (SourceType) children[i];
    TypeDeclaration localType = convert(type, compilationResult);
    if ((localType.bits&ASTNode.IsAnonymousType) != 0) {
      QualifiedAllocationExpression expression = new QualifiedAllocationExpression(localType);
      expression.type = localType.superclass;
      localType.superclass = null;
      localType.superInterfaces = null;
      localType.allocation = expression;
      statements[i] = expression;
    }
    else {
      statements[i] = localType;
    }
  }
   [[#variableb790d0c0]].statements = statements;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b71be280]]
typesLength != 0 
12[[#b71be280]]
typesLength > 0 
21[[#b790d0c0]]
method 
22[[#b790d0c0]]
block