|
@@ -55,7 +55,6 @@ import java.util.Collection;
|
|
|
import java.util.EnumSet;
|
|
|
import java.util.Iterator;
|
|
|
import java.util.Map;
|
|
|
-import java.util.NoSuchElementException;
|
|
|
import java.util.Random;
|
|
|
|
|
|
import com.google.common.collect.ImmutableList;
|
|
@@ -405,7 +404,7 @@ public class TestWebHDFS {
|
|
|
try {
|
|
|
it.next();
|
|
|
fail("Iterator should error if out of elements.");
|
|
|
- } catch (NoSuchElementException e) {
|
|
|
+ } catch (IllegalStateException e) {
|
|
|
// pass
|
|
|
}
|
|
|
return null;
|