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

@@ -176,7 +176,7 @@ abstract class PropertyDescriptor<S extends Element> {
}
returnType = getTopLevelType(returnType);
Element candidate = element;
while (candidate != null && candidate instanceof TypeElement) {
while (candidate instanceof TypeElement) {
if (returnType.equals(getTopLevelType(candidate))) {
return true;
}