/[classpath]/classpath/java/util/IdentityHashMap.java
ViewVC logotype

Diff of /classpath/java/util/IdentityHashMap.java

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

revision 1.2 by tromey, Tue Aug 21 15:29:43 2001 UTC revision 1.3 by cbj, Fri Aug 31 23:19:09 2001 UTC
# Line 83  public class IdentityHashMap extends Abs Line 83  public class IdentityHashMap extends Abs
83      size = 0;      size = 0;
84    }    }
85    
86      /**
87       * Creates a shallow copy where keys and values are not cloned.
88       */
89    public Object clone ()    public Object clone ()
90    {    {
91      IdentityHashMap copy = (IdentityHashMap) super.clone ();      IdentityHashMap copy = null;
92      copy.table = (Object[]) table.clone ();      try
93          {
94            copy = (IdentityHashMap) super.clone ();
95          }
96        catch (CloneNotSupportedException e)
97          {
98            copy = new IdentityHashMap (size);
99          }
100    
101        // copy.table = (Object[]) table.clone ();
102      return copy;      return copy;
103    }    }
104    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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