aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/lang/Double.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/lang/Double.java')
-rw-r--r--libjava/java/lang/Double.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/libjava/java/lang/Double.java b/libjava/java/lang/Double.java
index 22f2b5f..199f64e 100644
--- a/libjava/java/lang/Double.java
+++ b/libjava/java/lang/Double.java
@@ -191,10 +191,7 @@ public final class Double extends Number implements Comparable
*/
public static Double valueOf(String s)
{
- // XXX just call new Double(parseDouble(s));
- if (s == null)
- throw new NullPointerException();
- return new Double(s);
+ return new Double(parseDouble(s));
}
/**