PHP nullability annotations

This commit is contained in:
Artem Khvastunov
2016-09-07 18:22:50 +02:00
parent d7e45b8c0d
commit cfd9fb34d4
@@ -204,16 +204,16 @@ public class PsiTreeUtil {
}
@Nullable
@Contract("null, _ -> null")
public static <T extends PsiElement> T findChildOfType(@Nullable final PsiElement element, @NotNull final Class<T> aClass) {
//noinspection unchecked
return findChildOfAnyType(element, true, aClass);
}
@Nullable
@Contract("null, _, _ -> null")
public static <T extends PsiElement> T findChildOfType(@Nullable final PsiElement element,
@NotNull final Class<T> aClass,
final boolean strict) {
//noinspection unchecked
return findChildOfAnyType(element, strict, aClass);
}