Check that the parameter t is not null @param t The object to check @return t if it isn't null @throws NullPointerException if t is null.
(T t)
| 217 | * @throws NullPointerException if t is null. |
| 218 | */ |
| 219 | public static <T> T notNull(T t) { |
| 220 | if (t == null) |
| 221 | throw new NullPointerException(); |
| 222 | else |
| 223 | return t; |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * Instantiate the class |
no outgoing calls
no test coverage detected