Parent Directory | Revision Log | Patch
revision 1.15.2.1 by tromey, Thu Aug 5 21:09:36 2004 UTC | revision 1.15.2.2 by tromey, Sun Aug 8 06:38:26 2004 UTC | |
---|---|---|
# | Line 213 public class TreeSet<T> extends Abstract | Line 213 public class TreeSet<T> extends Abstract |
213 | TreeSet<T> copy = null; | TreeSet<T> copy = null; |
214 | try | try |
215 | { | { |
216 | copy = (TreeSet,T>) super.clone(); | copy = (TreeSet<T>) super.clone(); |
217 | // Map may be either TreeMap or TreeMap.SubMap, hence the ugly casts. | // Map may be either TreeMap or TreeMap.SubMap, hence the ugly casts. |
218 | copy.map = (SortedMap<T>) ((AbstractMap<T>) map).clone(); | copy.map = (SortedMap<T>) ((AbstractMap<T>) map).clone(); |
219 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |