Code Review 6706251: api/java_net/NetworkInterface/index.html#misc: getDisplayName() returned non null but empty String
Alan.Bateman at Sun.COM
Fri Mar 19 08:12:51 PDT 2010
Christopher Hegarty - Sun Microsystems Ireland wrote:
> I vaguely remember the history of this issue (Michael will know
> better), but the expectation from the API is that while empty string
> is not disallowed if the display name cannot be retrieved then null
> should be returned.
> I think such a clarification is unnecessary in the API, it is such a
> corner case, and may be confusing.
If the empty string is not allowed then changing the @return to make
this clear would be good.
More information about the net-dev