Remove redundant null check
See gh-42901
This commit is contained in:
committed by
Stéphane Nicoll
parent
7a185a097f
commit
ff855d9421
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user