Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 0 | 1.000 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 75 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SingleNameReference.java |
2 | 9 | 143 | 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 ); } } |
| ||||
// 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 ); } } |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |