CloneSet2206


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9201.000statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1975
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SingleNameReference.java
29143
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SingleNameReference.java
Clone Instance
1
Line Count
9
Source Line
75
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SingleNameReference.java

                                // check if accessing enum static field in initializer
                                if (declaringClass.isEnum()) {
                                        MethodScope methodScope = currentScope.methodScope();
                                        SourceTypeBinding sourceType = currentScope.enclosingSourceType();
                                        if (fieldBinding.isStatic() &&
                                                           this.constant == Constant.NotAConstant &&
                                                           !methodScope.isStatic &&
                                                           (sourceType == declaringClass || sourceType.superclass == declaringClass) // enum constant body
                                            &&             methodScope.isInsideInitializerOrConstructor()) {
                                                currentScope.problemReporter().enumStaticFieldUsedDuringInitialization(fieldBinding, this );
                                        }
                                }


Clone Instance
2
Line Count
9
Source Line
143
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SingleNameReference.java

                                // check if accessing enum static field in initializer
                                if (declaringClass.isEnum()) {
                                        MethodScope methodScope = currentScope.methodScope();
                                        SourceTypeBinding sourceType = currentScope.enclosingSourceType();
                                        if (fieldBinding.isStatic() &&
                                                           this.constant == Constant.NotAConstant &&
                                                           !methodScope.isStatic &&
                                                           (sourceType == declaringClass || sourceType.superclass == declaringClass) // enum constant body
                                            &&             methodScope.isInsideInitializerOrConstructor()) {
                                                currentScope.problemReporter().enumStaticFieldUsedDuringInitialization(fieldBinding, this );
                                        }
                                }


Clone AbstractionParameter Count: 0Parameter Bindings

// check if accessing enum static field in initializer
if (declaringClass.isEnum()) {
  MethodScope methodScope = currentScope.methodScope();
  SourceTypeBinding sourceType = currentScope.enclosingSourceType();
  if (fieldBinding.isStatic() && this.constant == Constant.NotAConstant && !methodScope.isStatic && (sourceType == declaringClass || sourceType.superclass == declaringClass) // enum constant body
      && methodScope.isInsideInitializerOrConstructor()) {
    currentScope.problemReporter().enumStaticFieldUsedDuringInitialization(fieldBinding, this );
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None