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.5 by jsr166, Mon Sep 27 19:15:15 2010 UTC vs.
Revision 1.6 by jsr166, Mon Feb 2 07:33:31 2015 UTC

# Line 179 | Line 179 | public class MOAT {
179                 new Fun(){void f(){ it.next(); }});
180  
181          try { it.remove(); }
182 <        catch (IllegalStateException _) { pass(); }
183 <        catch (UnsupportedOperationException _) { pass(); }
182 >        catch (IllegalStateException ignored) { pass(); }
183 >        catch (UnsupportedOperationException ignored) { pass(); }
184          catch (Throwable t) { unexpected(t); }
185  
186          if (rnd.nextBoolean())
# Line 252 | Line 252 | public class MOAT {
252          testEmptyCollection(m.values());
253  
254          try { check(! m.containsValue(null)); }
255 <        catch (NullPointerException _) { /* OK */ }
255 >        catch (NullPointerException ignored) { /* OK */ }
256          try { check(! m.containsKey(null)); }
257 <        catch (NullPointerException _) { /* OK */ }
257 >        catch (NullPointerException ignored) { /* OK */ }
258          check(! m.containsValue(1));
259          check(! m.containsKey(1));
260      }
# Line 684 | Line 684 | public class MOAT {
684              l.addAll(-1, Collections.<Integer>emptyList());
685              fail("Expected IndexOutOfBoundsException not thrown");
686          }
687 <        catch (UnsupportedOperationException _) {/* OK */}
688 <        catch (IndexOutOfBoundsException _) {/* OK */}
687 >        catch (UnsupportedOperationException ignored) {/* OK */}
688 >        catch (IndexOutOfBoundsException ignored) {/* OK */}
689          catch (Throwable t) { unexpected(t); }
690  
691   //      equal(l instanceof Serializable,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines