aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/classpath/SystemProperties.java
diff options
context:
space:
mode:
authorTom Tromey <tromey@gcc.gnu.org>2007-01-09 19:58:05 +0000
committerTom Tromey <tromey@gcc.gnu.org>2007-01-09 19:58:05 +0000
commit97b8365cafc3a344a22d3980b8ed885f5c6d8357 (patch)
tree996a5f57d4a68c53473382e45cb22f574cb3e4db /libjava/gnu/classpath/SystemProperties.java
parentc648dedbde727ca3f883bb5fd773aa4af70d3369 (diff)
downloadgcc-97b8365cafc3a344a22d3980b8ed885f5c6d8357.zip
gcc-97b8365cafc3a344a22d3980b8ed885f5c6d8357.tar.gz
gcc-97b8365cafc3a344a22d3980b8ed885f5c6d8357.tar.bz2
Merged gcj-eclipse branch to trunk.
From-SVN: r120621
Diffstat (limited to 'libjava/gnu/classpath/SystemProperties.java')
-rw-r--r--libjava/gnu/classpath/SystemProperties.java16
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);
+ }
+
}