ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/jtreg/util/AbstractMap/AbstractMapClone.java
(Generate patch)

Comparing jsr166/src/test/jtreg/util/AbstractMap/AbstractMapClone.java (file contents):
Revision 1.3 by jsr166, Mon Jan 8 03:12:03 2018 UTC vs.
Revision 1.4 by jsr166, Wed Jan 17 03:49:44 2018 UTC

# Line 48 | Line 48 | public class AbstractMapClone extends Ab
48      }
49  
50      public Object clone() {
51 <        AbstractMapClone clone = null;
51 >        final AbstractMapClone clone;
52          try {
53 <        clone = (AbstractMapClone)super.clone();
53 >            clone = (AbstractMapClone)super.clone();
54          } catch (CloneNotSupportedException e) {
55 +            throw new AssertionError(e);
56          }
57          clone.map = (Map)((HashMap)map).clone();
58          return clone;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines