AnnotationUtil#collectSuperParameters: redundant modifier list null-check reverted

Review ID: IDEA-CR-31796
This commit is contained in:
Tagir Valeev
2018-04-17 09:49:18 +07:00
parent 1d7f055271
commit 19cc2af06d
@@ -188,10 +188,7 @@ public class AnnotationUtil {
Consumer<PsiMethod> forEachSuperMethod = method -> {
PsiParameter[] superParameters = method.getParameterList().getParameters();
if (index < superParameters.length) {
PsiParameter superParameter = superParameters[index];
if (superParameter.getModifierList() != null) {
result.add(superParameter);
}
result.add(superParameters[index]);
}
};