diff --git a/python/resources/inspectionDescriptions/DjangoUrlArgumentsInspection.html b/python/resources/inspectionDescriptions/DjangoUrlArgumentsInspection.html new file mode 100644 index 000000000000..fef07306b84a --- /dev/null +++ b/python/resources/inspectionDescriptions/DjangoUrlArgumentsInspection.html @@ -0,0 +1,8 @@ + + + +Django inspection that checks "{% url %}" tag for required arguments. +It ensures that all arguments are passed correctly. + + + \ No newline at end of file diff --git a/python/src/com/jetbrains/python/psi/PyUtil.java b/python/src/com/jetbrains/python/psi/PyUtil.java index 22eaea276e3d..49a024bcd2f7 100644 --- a/python/src/com/jetbrains/python/psi/PyUtil.java +++ b/python/src/com/jetbrains/python/psi/PyUtil.java @@ -831,21 +831,6 @@ public class PyUtil { } - /** - * Returns empty array if null is provided. Returns provided array otherwise. - * @param expression array expression - * @param array type - * @return provided array or empty array if parameter is null - */ - @SuppressWarnings("unchecked") - @NotNull - public static T[] notNullArray(@Nullable final T[] expression) { - if (expression != null) { - return expression; - } - return (T[]) EMPTY_OBJECTS; - } - public static class KnownDecoratorProviderHolder { public static PyKnownDecoratorProvider[] KNOWN_DECORATOR_PROVIDERS = Extensions.getExtensions(PyKnownDecoratorProvider.EP_NAME);