garydgregory commented on PR #1105:
URL: https://github.com/apache/commons-lang/pull/1105#issuecomment-1713725280

   Hello @sujin0529 
   
   >I think this error is closer to IllegalArgumentException than 
NullPointerException.
   
   I disagree: `NullPointerException` is more _precise_ than 
`IllegalArgumentException`. Note that `Objects.requireNonNull()` throws NPE.  
What I can imagine is a better exception _message_ for the NPE.
   
   You've not replied to: "What would the behavior be for a null lock?"
   Are you arguing that the null input should throw an exception or not?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to