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

Comparing jsr166/src/test/jtreg/util/Collections/SetFromMap.java (file contents):
Revision 1.2 by jsr166, Sun Sep 5 21:32:19 2010 UTC vs.
Revision 1.3 by jsr166, Wed Jan 4 04:46:19 2017 UTC

# Line 49 | Line 49 | public class SetFromMap {
49  
50      private static void realMain() throws Throwable {
51          try {
52 <            Map<String,Boolean> m = new IdentityHashMap<String,Boolean>();
52 >            Map<String,Boolean> m = new IdentityHashMap<>();
53              Set<String> s = Collections.newSetFromMap(m);
54              String foo1 = new String("foo");
55              String foo2 = new String("foo");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines