ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentSkipListMap.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ConcurrentSkipListMap.java (file contents):
Revision 1.75 by jsr166, Wed Jun 8 00:50:35 2011 UTC vs.
Revision 1.76 by jsr166, Mon Jun 20 09:10:25 2011 UTC

# Line 1406 | Line 1406 | public class ConcurrentSkipListMap<K,V>
1406       * @return a shallow copy of this map
1407       */
1408      public ConcurrentSkipListMap<K,V> clone() {
1409        ConcurrentSkipListMap<K,V> clone = null;
1409          try {
1410 <            clone = (ConcurrentSkipListMap<K,V>) super.clone();
1410 >            @SuppressWarnings("unchecked")
1411 >            ConcurrentSkipListMap<K,V> clone =
1412 >                (ConcurrentSkipListMap<K,V>) super.clone();
1413 >            clone.initialize();
1414 >            clone.buildFromSorted(this);
1415 >            return clone;
1416          } catch (CloneNotSupportedException e) {
1417              throw new InternalError();
1418          }
1415
1416        clone.initialize();
1417        clone.buildFromSorted(this);
1418        return clone;
1419      }
1420  
1421      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines