pkt1583 / functionaljava

Automatically exported from code.google.com/p/functionaljava
0 stars 0 forks source link

Option.fromNull javadocs b=incorrect #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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