CloneSet1769


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10210.985statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110232
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java
210241
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java
Clone Instance
1
Line Count
10
Source Line
232
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java

                                do {
                                        // isStatic() is answering true for toplevel types
                                        if ((currentType.modifiers&  ClassFileConstants.AccStatic) != 0) break checkParameterizedAllocation;
                                        if (currentType.isRawType()) break checkParameterizedAllocation;
                                }
                                while (  (currentType = currentType.enclosingType()) != null);
                                ParameterizedQualifiedTypeReference qRef = (ParameterizedQualifiedTypeReference) this.type;
                                for (int i = qRef.typeArguments.length - 2; i >= 0; i--) {
                                        if (qRef.typeArguments[i] != null) {
                                                scope.problemReporter().illegalQualifiedParameterizedTypeAllocation(this.type, this.resolvedType);
                                                break;
                                        }
                                }


Clone Instance
2
Line Count
10
Source Line
241
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java

                                                do {
                                                        // isStatic() is answering true for toplevel types
                                                        if ((currentType.modifiers&  ClassFileConstants.AccStatic) != 0) break checkParameterizedAllocation;
                                                        if (currentType.isRawType()) break checkParameterizedAllocation;
                                                }
                                                while (  (currentType = currentType.enclosingType()) != null);
                                                ParameterizedQualifiedTypeReference qRef = (ParameterizedQualifiedTypeReference) this.type;
                                                for (int i = qRef.typeArguments.length - 2; i >= 0; i--) {
                                                        if (qRef.typeArguments[i] != null) {
                                                                scope.problemReporter().illegalQualifiedParameterizedTypeAllocation(this.type, receiverType);
                                                                break;
                                                        }
                                                }


Clone AbstractionParameter Count: 1Parameter Bindings

do {
  // isStatic() is answering true for toplevel types
  if ((currentType.modifiers&ClassFileConstants.AccStatic) != 0)
    break checkParameterizedAllocation;
  if (currentType.isRawType())
    break checkParameterizedAllocation;
}
while ((currentType = currentType.enclosingType()) != null);
ParameterizedQualifiedTypeReference qRef = (ParameterizedQualifiedTypeReference) this.type;
for (int i = qRef.typeArguments.length - 2; i >= 0; i--) {
  if (qRef.typeArguments[i] != null) {
    scope.problemReporter().illegalQualifiedParameterizedTypeAllocation(this.type,  [[#variable9728cee0]]);
    break;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9728cee0]]
receiverType 
12[[#9728cee0]]
this.resolvedType