44 |
|
copy.add(new Integer(99)); |
45 |
|
i.remove(); |
46 |
|
throw new Exception("remove: iterator didn't fail fast"); |
47 |
< |
} catch(ConcurrentModificationException e) { |
47 |
> |
} catch (ConcurrentModificationException e) { |
48 |
|
} |
49 |
|
if (!copy.equals(orig)) |
50 |
|
throw new Exception("remove: iterator didn't fail fast enough"); |
56 |
|
copy.add(new Integer(99)); |
57 |
|
i.set(new Integer(666)); |
58 |
|
throw new Exception("set: iterator didn't fail fast"); |
59 |
< |
} catch(ConcurrentModificationException e) { |
59 |
> |
} catch (ConcurrentModificationException e) { |
60 |
|
} |
61 |
|
if (!copy.equals(orig)) |
62 |
|
throw new Exception("set: iterator didn't fail fast enough"); |
67 |
|
copy.add(new Integer(99)); |
68 |
|
i.add(new Integer(666)); |
69 |
|
throw new Exception("add: iterator didn't fail fast"); |
70 |
< |
} catch(ConcurrentModificationException e) { |
70 |
> |
} catch (ConcurrentModificationException e) { |
71 |
|
} |
72 |
|
if (!copy.equals(orig)) |
73 |
|
throw new Exception("add: iterator didn't fail fast enough"); |