Skip to content

Commit 946d33d

Browse files
author
Vladimir Kotal
committed
use Paths.get()
1 parent f9a8ed1 commit 946d33d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/history/MercurialRepositoryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import java.io.File;
3636
import java.io.IOException;
3737
import java.io.InputStream;
38+
import java.nio.file.Paths;
3839
import java.util.ArrayList;
3940
import java.util.Arrays;
4041
import java.util.Collections;
@@ -194,7 +195,7 @@ public void testGetHistoryBranch() throws Exception {
194195

195196
// Branch the repo and add one changeset.
196197
runHgCommand(root, "unbundle",
197-
getClass().getResource("/history/hg-branch.bundle").getPath());
198+
Paths.get(getClass().getResource("/history/hg-branch.bundle").toURI()).toString());
198199
// Switch to the branch.
199200
runHgCommand(root, "update", "mybranch");
200201

0 commit comments

Comments
 (0)