File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 4242import java .net .URL ;
4343import java .net .UnknownHostException ;
4444import java .nio .charset .StandardCharsets ;
45- import java .nio .file .FileSystems ;
4645import java .nio .file .Files ;
4746import java .nio .file .Paths ;
4847import java .util .ArrayList ;
@@ -1472,11 +1471,11 @@ public void testCreateArbitrarySymlinkUsingJava() throws IOException {
14721471
14731472 // We will tar from the tar-root lineage
14741473 File tarRoot = new File (rootDir , "tar-root/" );
1475- File dir1 = new File (tarRoot , "dir1/" );
1476- Verify .mkdirs (dir1 );
1474+ File symlinkRoot = new File (tarRoot , "dir1/" );
1475+ Verify .mkdirs (symlinkRoot );
14771476
14781477 // Create Symbolic Link to an arbitrary dir
1479- java .nio .file .Path symLink = Paths .get (dir1 .getPath (), "sl" );
1478+ java .nio .file .Path symLink = Paths .get (symlinkRoot .getPath (), "sl" );
14801479 Files .createSymbolicLink (symLink , arbitraryDir .toPath ().toAbsolutePath ());
14811480
14821481 // Put entries in tar file
You can’t perform that action at this time.
0 commit comments