aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/lang/ThreadLocal.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2004-10-18 10:41:56 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2004-10-18 10:41:56 +0000
commit2047d8e479efea09e4f812662fc38e57f9f37226 (patch)
tree13de505ee49b7bb4b843feeac949d8748d7360ff /libjava/java/lang/ThreadLocal.java
parent36071b5cbeaf23f0ac98cd313ba7d29d016b5ca2 (diff)
downloadgcc-2047d8e479efea09e4f812662fc38e57f9f37226.zip
gcc-2047d8e479efea09e4f812662fc38e57f9f37226.tar.gz
gcc-2047d8e479efea09e4f812662fc38e57f9f37226.tar.bz2
Math.java, [...]: Reworked import statements, HTML in javadocs and modifier orders.
2004-10-18 Michael Koch <konqueror@gmx.de> * java/lang/Math.java, java/lang/Package.java, java/lang/Runtime.java, java/lang/StrictMath.java, java/lang/System.java, java/lang/Thread.java, java/lang/ThreadLocal.java, java/lang/Void.java: Reworked import statements, HTML in javadocs and modifier orders. From-SVN: r89207
Diffstat (limited to 'libjava/java/lang/ThreadLocal.java')
-rw-r--r--libjava/java/lang/ThreadLocal.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/libjava/java/lang/ThreadLocal.java b/libjava/java/lang/ThreadLocal.java
index 9725659..d9967c6 100644
--- a/libjava/java/lang/ThreadLocal.java
+++ b/libjava/java/lang/ThreadLocal.java
@@ -41,6 +41,7 @@ import java.util.Collections;
import java.util.Map;
import java.util.WeakHashMap;
+
/**
* ThreadLocal objects have a different state associated with every
* Thread that accesses them. Every access to the ThreadLocal object
@@ -51,8 +52,11 @@ import java.util.WeakHashMap;
* <p>The first time a ThreadLocal object is accessed on a particular
* Thread, the state for that Thread's copy of the local variable is set by
* executing the method <code>initialValue()</code>.
+ * </p>
*
* <p>An example how you can use this:
+ * </p>
+ *
* <pre>
* class Connection
* {
@@ -65,20 +69,22 @@ import java.util.WeakHashMap;
* };
* ...
* }
- * </pre></br>
+ * </pre>
*
- * Now all instances of connection can see who the owner of the currently
+ * <p>Now all instances of connection can see who the owner of the currently
* executing Thread is by calling <code>owner.get()</code>. By default any
* Thread would be associated with 'nobody'. But the Connection object could
* offer a method that changes the owner associated with the Thread on
* which the method was called by calling <code>owner.put("somebody")</code>.
* (Such an owner changing method should then be guarded by security checks.)
+ * </p>
*
* <p>When a Thread is garbage collected all references to values of
* the ThreadLocal objects associated with that Thread are removed.
+ * </p>
*
- * @author Mark Wielaard <mark@klomp.org>
- * @author Eric Blake <ebb9@email.byu.edu>
+ * @author Mark Wielaard (mark@klomp.org)
+ * @author Eric Blake (ebb9@email.byu.edu)
* @since 1.2
* @status updated to 1.4
*/