Merge branch '3.2.x' into 3.3.x
Closes gh-42916
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2022 the original author or authors.
|
* Copyright 2012-2024 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -78,7 +78,7 @@ class QualifierDefinition {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static QualifierDefinition forElement(AnnotatedElement element) {
|
static QualifierDefinition forElement(AnnotatedElement element) {
|
||||||
if (element != null && element instanceof Field field) {
|
if (element instanceof Field field) {
|
||||||
Set<Annotation> annotations = getQualifierAnnotations(field);
|
Set<Annotation> annotations = getQualifierAnnotations(field);
|
||||||
if (!annotations.isEmpty()) {
|
if (!annotations.isEmpty()) {
|
||||||
return new QualifierDefinition(field, annotations);
|
return new QualifierDefinition(field, annotations);
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ abstract class PropertyDescriptor {
|
|||||||
}
|
}
|
||||||
returnType = getTopLevelType(returnType);
|
returnType = getTopLevelType(returnType);
|
||||||
Element candidate = element;
|
Element candidate = element;
|
||||||
while (candidate != null && candidate instanceof TypeElement) {
|
while (candidate instanceof TypeElement) {
|
||||||
if (returnType.equals(getTopLevelType(candidate))) {
|
if (returnType.equals(getTopLevelType(candidate))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user