/[classpath]/classpath/java/lang/ThreadLocal.java
ViewVC logotype

Diff of /classpath/java/lang/ThreadLocal.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4.2.4 by tromey, Wed Apr 20 20:22:27 2005 UTC revision 1.4.2.5 by jfrijters, Fri Jun 17 13:23:40 2005 UTC
# Line 101  public class ThreadLocal<T> Line 101  public class ThreadLocal<T>
101     * We can't use "this", because a subclass may override equals/hashCode     * We can't use "this", because a subclass may override equals/hashCode
102     * and we need to use object identity for the map.     * and we need to use object identity for the map.
103     */     */
104    final Key key = new Key();    final Key key = new Key(this);
105    
106    class Key    static class Key
107    {    {
108        private ThreadLocal outer;
109    
110        Key(ThreadLocal outer)
111        {
112          this.outer = outer;
113        }
114    
115      ThreadLocal get()      ThreadLocal get()
116      {      {
117        return ThreadLocal.this;        return outer;
118      }      }
119    }    }
120    

Legend:
Removed from v.1.4.2.4  
changed lines
  Added in v.1.4.2.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26