The javadocs for Option.fromNull are as follows:
{{{
/**
* Turns an unsafe nullable value into a safe optional value. If <code>t == null</code> then
* return none, otherwise, return the given value in some.
*
* @param t The unsafe nullable value.
* @return If <code>t == null</code> then return it in some, otherwise, return none.
*/
}}}
However, "return" docs should say if {{{t != null}}}, not if {{{t == null}}}.
Original issue reported on code.google.com by dob...@gmail.com on 14 Apr 2013 at 4:38
Original issue reported on code.google.com by
dob...@gmail.com
on 14 Apr 2013 at 4:38