Skip to content

Commit 9e051d9

Browse files
committed
Use older syntax for paths
1 parent 0625ed9 commit 9e051d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/com/superzanti/serversync/LineFeedTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import org.junit.jupiter.api.Test;
88

99
import java.nio.file.Path;
10+
import java.nio.file.Paths;
1011

1112
class LineFeedTest {
1213

@@ -19,8 +20,8 @@ public LineFeedTest() {
1920
@DisplayName("Should hash text files ignoring line feeds")
2021
void textHash() {
2122
// We know these resource files will not be null
22-
Path crlf = Path.of(getClass().getResource("/hash_crlf.txt").getPath().substring(1));
23-
Path lf = Path.of(getClass().getResource("/hash_lf.txt").getPath().substring(1));
23+
Path crlf = Paths.get(getClass().getResource("/hash_crlf.txt").getPath().substring(1));
24+
Path lf = Paths.get(getClass().getResource("/hash_lf.txt").getPath().substring(1));
2425

2526
String hashLF = FileHash.hashFile(lf);
2627
String hashCRLF = FileHash.hashFile(crlf);

0 commit comments

Comments
 (0)