Skip to content

Commit e966122

Browse files
Fix checkstyle issues
1 parent 2e841bb commit e966122

File tree

1 file changed

+3
-4
lines changed
  • hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs

1 file changed

+3
-4
lines changed

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileUtil.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import java.net.URL;
4343
import java.net.UnknownHostException;
4444
import java.nio.charset.StandardCharsets;
45-
import java.nio.file.FileSystems;
4645
import java.nio.file.Files;
4746
import java.nio.file.Paths;
4847
import 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

0 commit comments

Comments
 (0)