Additional check of the "source" parameter. Based on the problem reported by SpotBugs 4.0.1. After adding a fix, any wrong calls of the first constructor will also be visible as a bug and can be caught earlier.
Comment From: pivotal-issuemaster
@Konrado85 Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-issuemaster
@Konrado85 Thank you for signing the Contributor License Agreement!
Comment From: wilkinsona
Thanks for the suggestion but I would prefer to keep a single requireNonNull
check in the constructor to which the other one delegates.