CloneSet720


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15330.968class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115243
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java
214277
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java
314305
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java
Clone Instance
1
Line Count
15
Source Line
243
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java

protected void classInstanceCreation(boolean alwaysQualified) {

        boolean previousFlag = reportReferenceInfo;
        reportReferenceInfo = false; // not to see the type reference reported in super call to getTypeReference(...)
        super.classInstanceCreation(alwaysQualified);
        reportReferenceInfo = previousFlag;
        if (reportReferenceInfo) {
                AllocationExpression alloc = (AllocationExpression) expressionStack[expressionPtr];
                TypeReference typeRef = alloc.type;
                requestor.acceptConstructorReference(
                        typeRef instanceof SingleTypeReference ?
                                  ((SingleTypeReference) typeRef).token:
                                  CharOperation.concatWith(alloc.type.getParameterizedTypeName(), '.'), 
                        alloc.arguments == null ? 0:  alloc.arguments.length, 
                        alloc.sourceStart           );
        }
}


Clone Instance
2
Line Count
14
Source Line
277
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java

protected void consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() {
        boolean previousFlag = reportReferenceInfo;
        reportReferenceInfo = false; // not to see the type reference reported in super call to getTypeReference(...)
        super.consumeClassInstanceCreationExpressionQualifiedWithTypeArguments();
        reportReferenceInfo = previousFlag;
        if (reportReferenceInfo) {
                AllocationExpression alloc = (AllocationExpression) expressionStack[expressionPtr];
                TypeReference typeRef = alloc.type;
                requestor.acceptConstructorReference(
                        typeRef instanceof SingleTypeReference ?
                                  ((SingleTypeReference) typeRef).token:
                                  CharOperation.concatWith(alloc.type.getParameterizedTypeName(), '.'), 
                        alloc.arguments == null ? 0:  alloc.arguments.length, 
                        alloc.sourceStart           );
        }
}


Clone Instance
3
Line Count
14
Source Line
305
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java

protected void consumeClassInstanceCreationExpressionWithTypeArguments() {
        boolean previousFlag = reportReferenceInfo;
        reportReferenceInfo = false; // not to see the type reference reported in super call to getTypeReference(...)
        super.consumeClassInstanceCreationExpressionWithTypeArguments();
        reportReferenceInfo = previousFlag;
        if (reportReferenceInfo) {
                AllocationExpression alloc = (AllocationExpression) expressionStack[expressionPtr];
                TypeReference typeRef = alloc.type;
                requestor.acceptConstructorReference(
                        typeRef instanceof SingleTypeReference ?
                                  ((SingleTypeReference) typeRef).token:
                                  CharOperation.concatWith(alloc.type.getParameterizedTypeName(), '.'), 
                        alloc.arguments == null ? 0:  alloc.arguments.length, 
                        alloc.sourceStart           );
        }
}


Clone AbstractionParameter Count: 3Parameter Bindings

protected void [[#variable5a1499e0]] [[#variable5a149960]]{
  boolean previousFlag = reportReferenceInfo;
  reportReferenceInfo = false; // not to see the type reference reported in super call to getTypeReference(...)
  super. [[#variable5a1499e0]] [[#variable5a1498e0]];
  reportReferenceInfo = previousFlag;
  if (reportReferenceInfo) {
    AllocationExpression alloc = (AllocationExpression) expressionStack[expressionPtr];
    TypeReference typeRef = alloc.type;
    requestor.acceptConstructorReference(typeRef instanceof SingleTypeReference ? ((SingleTypeReference) typeRef).token: CharOperation.concatWith(alloc.type.getParameterizedTypeName(), '.'), alloc.arguments == null ? 0: alloc.arguments.length, alloc.sourceStart);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5a1499e0]]
classInstanceCreation 
12[[#5a1499e0]]
consumeClassInstanceCreationExpressionQualifiedWithTypeArguments 
13[[#5a1499e0]]
consumeClassInstanceCreationExpressionWithTypeArguments 
21[[#5a149960]]
(boolean alwaysQualified) 
22[[#5a149960]]
() 
23[[#5a149960]]
() 
31[[#5a1498e0]]
(alwaysQualified) 
32[[#5a1498e0]]
() 
33[[#5a1498e0]]
()