CloneSet2196


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

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


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

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


Clone AbstractionParameter Count: 1Parameter Bindings

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

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b3132060]]
lastFieldBinding 
12[[#b3132060]]
fieldBinding