The parameters should be validated and appropriate exceptions should be thrown such as IllegalArgumentException.
The parameters should be validated and appropriate exceptions should be thrown such as IllegalArgumentException.