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

Comparing jsr166/src/test/jtreg/util/Collection/MOAT.java (file contents):
Revision 1.16 by jsr166, Wed Jan 4 04:46:18 2017 UTC vs.
Revision 1.17 by jsr166, Sat Oct 21 00:39:59 2017 UTC

# Line 1584 | Line 1584 | public class MOAT {
1584      }
1585      interface Fun {void f() throws Throwable;}
1586      private static void THROWS(Class<? extends Throwable> k, Fun... fs) {
1587 <          for (Fun f : fs)
1588 <              try { f.f(); fail("Expected " + k.getName() + " not thrown"); }
1589 <              catch (Throwable t) {
1590 <                  if (k.isAssignableFrom(t.getClass())) pass();
1591 <                  else unexpected(t);}}
1587 >        for (Fun f : fs)
1588 >            try { f.f(); fail("Expected " + k.getName() + " not thrown"); }
1589 >            catch (Throwable t) {
1590 >                if (k.isAssignableFrom(t.getClass())) pass();
1591 >                else unexpected(t);}}
1592      static byte[] serializedForm(Object obj) {
1593          try {
1594              ByteArrayOutputStream baos = new ByteArrayOutputStream();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines