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

Comparing jsr166/src/test/tck/ConcurrentHashMapTest.java (file contents):
Revision 1.42 by jsr166, Sun Feb 22 04:34:44 2015 UTC vs.
Revision 1.43 by jsr166, Fri Feb 27 21:43:18 2015 UTC

# Line 538 | Line 538 | public class ConcurrentHashMapTest exten
538          try {
539              new ConcurrentHashMap(-1, .75f);
540              shouldThrow();
541 <        } catch (IllegalArgumentException e) {}
541 >        } catch (IllegalArgumentException success) {}
542  
543          try {
544              new ConcurrentHashMap(16, -1);
545              shouldThrow();
546 <        } catch (IllegalArgumentException e) {}
546 >        } catch (IllegalArgumentException success) {}
547      }
548  
549      /**
# Line 554 | Line 554 | public class ConcurrentHashMapTest exten
554          try {
555              new ConcurrentHashMap(-1, .75f, 1);
556              shouldThrow();
557 <        } catch (IllegalArgumentException e) {}
557 >        } catch (IllegalArgumentException success) {}
558  
559          try {
560              new ConcurrentHashMap(16, -1, 1);
561              shouldThrow();
562 <        } catch (IllegalArgumentException e) {}
562 >        } catch (IllegalArgumentException success) {}
563  
564          try {
565              new ConcurrentHashMap(16, .75f, -1);
566              shouldThrow();
567 <        } catch (IllegalArgumentException e) {}
567 >        } catch (IllegalArgumentException success) {}
568      }
569  
570      /**
# Line 575 | Line 575 | public class ConcurrentHashMapTest exten
575          try {
576              new ConcurrentHashMap(null);
577              shouldThrow();
578 <        } catch (NullPointerException e) {}
578 >        } catch (NullPointerException success) {}
579      }
580  
581      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines