Remove redundant null check

See gh-42901
This commit is contained in:
Tran Ngoc Nhan
2024-10-27 12:14:00 +07:00
committed by Stéphane Nicoll
parent 7a185a097f
commit ff855d9421
2 changed files with 2 additions and 2 deletions

View File

@@ -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);