×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: JM Brun
Added: Mar 26, 2018 4:28 PM
Views: 3
API validation
  1. // http://tidyjava.com/10-tips-handle-null-effectively/
  2. // Validate public API arguments
  3. Objects.requireNonNull(baz, "baz must not be null");