Remove redundant null check
See gh-42901
This commit is contained in:
committed by
Stéphane Nicoll
parent
7a185a097f
commit
ff855d9421
@@ -78,7 +78,7 @@ class QualifierDefinition {
|
||||
}
|
||||
|
||||
static QualifierDefinition forElement(AnnotatedElement element) {
|
||||
if (element != null && element instanceof Field field) {
|
||||
if (element instanceof Field field) {
|
||||
Set<Annotation> annotations = getQualifierAnnotations(field);
|
||||
if (!annotations.isEmpty()) {
|
||||
return new QualifierDefinition(field, annotations);
|
||||
|
||||
Reference in New Issue
Block a user