ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ConcurrentHashMap8Test.java
(Generate patch)

Comparing jsr166/src/test/tck/ConcurrentHashMap8Test.java (file contents):
Revision 1.19 by jsr166, Wed Dec 31 21:35:01 2014 UTC vs.
Revision 1.20 by jsr166, Wed Dec 31 21:39:07 2014 UTC

# Line 1003 | Line 1003 | public class ConcurrentHashMap8Test exte
1003      public void testSearchValuesSequentially() {
1004          ConcurrentHashMap<Long, Long> m = longMap();
1005          Long r;
1006 <        r = m.searchValues(Long.MAX_VALUE, (Long x) -> x.longValue() == (long)(SIZE/2)? x : null);
1006 >        r = m.searchValues(Long.MAX_VALUE,
1007 >            (Long x) -> (x.longValue() == (long)(SIZE/2)) ? x : null);
1008          assertEquals((long)r, (long)(SIZE/2));
1009 <        r = m.searchValues(Long.MAX_VALUE, (Long x) -> x.longValue() < 0L ? x : null);
1009 >        r = m.searchValues(Long.MAX_VALUE,
1010 >            (Long x) -> (x.longValue() < 0L) ? x : null);
1011          assertNull(r);
1012      }
1013  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines