Am 13.01.2011 23:38, schrieb Brian Goetz:

People use these to simplify cases like

  if (foo != null)
    for (Foo f : foo) { ... }

to

  for (Foo f : nonNull(foo)) { ... }

To be honest, I don't understand the real value of nonNull().
If the argument is null, NPE would be thrown anyway.
Do I miss something?

-Ulf

Reply via email to