-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Closed as not planned
Labels
status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by anothertype: taskA general taskA general task
Description
From @mhalbritter in spring-io/spring-javaformat#339:
We should add a rule preventing calls to
Objects.requireNonNull()
, instead we should useAssert.notNull()
from Spring Framework.Objects.requireNonNull()
throws aNullPointerException
, whileAssert.notNull()
throws aIllegalArgumentException
.
Checkstyle can't do this accurately. We can do it in our own build instead using ArchUnit by adding a rule to the ArchitectureCheck
task.
Metadata
Metadata
Assignees
Labels
status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by anothertype: taskA general taskA general task