CloneSet1060


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22210.972statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1221084
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java
2221158
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java
Clone Instance
1
Line Count
22
Source Line
1084
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java

                if (reportReferenceInfo) {
                        ConstructorDeclaration constructorDeclaration = (ConstructorDeclaration) methodDeclaration;
                        ExplicitConstructorCall constructorCall = constructorDeclaration.constructorCall;
                        if (constructorCall != null) {
                                switch (constructorCall.accessMode) {
                                        case ExplicitConstructorCall.This:
                                                requestor.acceptConstructorReference(
                                                        typeNames[nestedTypeIndex - 1], 
                                                        constructorCall.arguments == null ? 0:  constructorCall.arguments.length, 
                                                        constructorCall.sourceStart );
                                                break;
                                        case ExplicitConstructorCall.Super:
                                        case ExplicitConstructorCall.ImplicitSuper:
                                                requestor.acceptConstructorReference(
                                                        superTypeNames[nestedTypeIndex - 1], 
                                                        constructorCall.arguments == null ? 0:  constructorCall.arguments.length, 
                                                        constructorCall.sourceStart );
                                                break;
                                      }
                        }
                }
                return;


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

                if (reportReferenceInfo) {
                        ConstructorDeclaration constructorDeclaration = (ConstructorDeclaration) methodDeclaration;
                        ExplicitConstructorCall constructorCall = constructorDeclaration.constructorCall;
                        if (constructorCall != null) {
                                switch (constructorCall.accessMode) {
                                        case ExplicitConstructorCall.This:
                                                requestor.acceptConstructorReference(
                                                        typeNames[nestedTypeIndex - 1], 
                                                        constructorCall.arguments == null ? 0:  constructorCall.arguments.length, 
                                                        constructorCall.sourceStart );
                                                break;
                                        case ExplicitConstructorCall.Super:
                                        case ExplicitConstructorCall.ImplicitSuper:
                                                requestor.acceptConstructorReference(
                                                        superTypeNames[nestedTypeIndex - 1], 
                                                        constructorCall.arguments == null ? 0:  constructorCall.arguments.length, 
                                                        constructorCall.sourceStart );
                                                break;
                                      }
                        }
                }
                this.visitIfNeeded(methodDeclaration);


Clone AbstractionParameter Count: 1Parameter Bindings

if (reportReferenceInfo) {
  ConstructorDeclaration constructorDeclaration = (ConstructorDeclaration) methodDeclaration;
  ExplicitConstructorCall constructorCall = constructorDeclaration.constructorCall;
  if (constructorCall != null) {
    switch (constructorCall.accessMode) {
      case ExplicitConstructorCall.This:
        requestor.acceptConstructorReference(typeNames[nestedTypeIndex - 1], constructorCall.arguments == null ? 0: constructorCall.arguments.length, constructorCall.sourceStart);
        break;
      case ExplicitConstructorCall.Super:
      case ExplicitConstructorCall.ImplicitSuper:
        requestor.acceptConstructorReference(superTypeNames[nestedTypeIndex - 1], constructorCall.arguments == null ? 0: constructorCall.arguments.length, constructorCall.sourceStart);
        break;
    }
  }
}
 [[#variableb5e05fa0]]
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b5e05fa0]]
this.visitIfNeeded(methodDeclaration); 
12[[#b5e05fa0]]
return;