diff options
author | Jeroen Frijters <jeroen@sumatra.nl> | 2006-04-17 10:27:47 +0000 |
---|---|---|
committer | Jeroen Frijters <jeroen@sumatra.nl> | 2006-04-17 10:27:47 +0000 |
commit | 9ab01647624e018eb335c3c2fbbcc786a82237c3 (patch) | |
tree | b7c3f2c27b2233503595b31e4bd91652203685a1 /java/lang/ThreadLocal.java | |
parent | f7de6be796df127b8c622de8313c104813ec72f1 (diff) | |
download | classpath-9ab01647624e018eb335c3c2fbbcc786a82237c3.tar.gz |
2006-04-17 Jeroen Frijters <jeroen@frijters.net>
* java/lang/Boolean.java: Implemented Comparable.
* java/lang/ClassLoader.java
(getResources): Not final anymore in 1.5.
* java/lang/Enum.java, java/lang/Iterable.java:
Copied from generics branch.
* java/lang/Thread.java (destroy): Marked deprecated.
* java/lang/ThreadLocal.java (remove): New method.
Diffstat (limited to 'java/lang/ThreadLocal.java')
-rw-r--r-- | java/lang/ThreadLocal.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/java/lang/ThreadLocal.java b/java/lang/ThreadLocal.java index aceb2557a..64df8c3dd 100644 --- a/java/lang/ThreadLocal.java +++ b/java/lang/ThreadLocal.java @@ -152,4 +152,15 @@ public class ThreadLocal // ever modify the map. map.put(this, value == null ? NULL : value); } + + /** + * Removes the value associated with the ThreadLocal object for the + * currently executing Thread. + * @since 1.5 + */ + public void remove() + { + Map map = Thread.getThreadLocals(); + map.remove(this); + } } |