Parent Directory | Revision Log | Patch
revision 1.30 by ericb, Mon Feb 25 20:02:58 2002 UTC | revision 1.31 by mark, Thu Oct 10 13:38:21 2002 UTC | |
---|---|---|
# | Line 191 public final class Double extends Number | Line 191 public final class Double extends Number |
191 | */ | */ |
192 | public static Double valueOf(String s) | public static Double valueOf(String s) |
193 | { | { |
194 | // XXX just call new Double(parseDouble(s)); | return new Double(parseDouble(s)); |
if (s == null) | ||
throw new NullPointerException(); | ||
return new Double(s); | ||
195 | } | } |
196 | ||
197 | /** | /** |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |