HDFS-12699. TestMountTable fails with Java 7. Contributed by Inigo Goiri.

(cherry picked from commit 982bd2a5bf)
This commit is contained in:
Inigo Goiri 2017-10-31 10:21:42 -07:00
parent f09725537e
commit e259030066
1 changed files with 1 additions and 2 deletions

View File

@ -22,7 +22,6 @@ import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import java.io.IOException; import java.io.IOException;
import java.util.HashMap;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
@ -113,7 +112,7 @@ public class TestMountTable {
@Test @Test
public void testReadOnly() throws IOException { public void testReadOnly() throws IOException {
Map<String, String> dest = new HashMap<>(); Map<String, String> dest = new LinkedHashMap<>();
dest.put(DST_NS_0, DST_PATH_0); dest.put(DST_NS_0, DST_PATH_0);
dest.put(DST_NS_1, DST_PATH_1); dest.put(DST_NS_1, DST_PATH_1);
MountTable record1 = MountTable.newInstance(SRC, dest); MountTable record1 = MountTable.newInstance(SRC, dest);