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

Comparing jsr166/src/test/jtreg/util/LinkedList/ComodifiedRemove.java (file contents):
Revision 1.3 by jsr166, Sun Sep 5 21:32:20 2010 UTC vs.
Revision 1.5 by jsr166, Mon Jan 8 03:12:03 2018 UTC

# Line 29 | Line 29
29   * @author Konstantin Kladko
30   */
31  
32 import java.util.*;
33 import java.util.ListIterator;
32   import java.util.ConcurrentModificationException;
33 + import java.util.LinkedList;
34 + import java.util.List;
35 + import java.util.ListIterator;
36  
37   public class ComodifiedRemove {
38      public static
# Line 44 | Line 45 | public class ComodifiedRemove {
45          Object o2 = new Integer(2);
46          list.add(o2);
47  
48 <        try{
48 >        try {
49              e.remove();
50          } catch (ConcurrentModificationException cme) {
51              return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines