diff options
Diffstat (limited to 'libjava/gnu/classpath/SystemProperties.java')
-rw-r--r-- | libjava/gnu/classpath/SystemProperties.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libjava/gnu/classpath/SystemProperties.java b/libjava/gnu/classpath/SystemProperties.java index 001663f..e5ecdf7 100644 --- a/libjava/gnu/classpath/SystemProperties.java +++ b/libjava/gnu/classpath/SystemProperties.java @@ -1,5 +1,5 @@ /* SystemProperties.java -- Manage the System properties. - Copyright (C) 2004, 2005 Free Software Foundation + Copyright (C) 2004, 2005, 2006 Free Software Foundation This file is part of GNU Classpath. @@ -154,4 +154,18 @@ public class SystemProperties * @return true if the system is big-endian. */ private static native boolean isWordsBigEndian(); + + /** + * Removes the supplied system property and its current value. + * If the specified property does not exist, nothing happens. + * + * @throws NullPointerException if the property name is null. + * @return the value of the removed property, or null if no + * such property exists. + */ + public static String remove(String name) + { + return (String) properties.remove(name); + } + } |