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

Comparing jsr166/src/test/jtreg/util/NavigableMap/LockStep.java (file contents):
Revision 1.6 by jsr166, Wed Jan 4 04:46:19 2017 UTC vs.
Revision 1.7 by jsr166, Sat Oct 21 00:42:10 2017 UTC

# Line 848 | Line 848 | public class LockStep {
848      }
849      interface Fun {void f() throws Throwable;}
850      static void THROWS(Class<? extends Throwable> k, Fun... fs) {
851 <          for (Fun f : fs)
852 <              try { f.f(); fail("Expected " + k.getName() + " not thrown"); }
853 <              catch (Throwable t) {
854 <                  if (k.isAssignableFrom(t.getClass())) pass();
855 <                  else unexpected(t);}}
851 >        for (Fun f : fs)
852 >            try { f.f(); fail("Expected " + k.getName() + " not thrown"); }
853 >            catch (Throwable t) {
854 >                if (k.isAssignableFrom(t.getClass())) pass();
855 >                else unexpected(t);}}
856      static byte[] serializedForm(Object obj) {
857          try {
858              ByteArrayOutputStream baos = new ByteArrayOutputStream();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines