Skip to content

Commit 4209b3d

Browse files
committed
update
1 parent 23bce29 commit 4209b3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/utils/FileUtil.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818

1919
public class FileUtil {
2020

21-
public static String getFileContent(String filePath) throws IOException {
21+
public static String getFileContent(Path filePath) throws IOException {
2222

23-
BufferedReader br = new BufferedReader(new FileReader(filePath));
23+
BufferedReader br = new BufferedReader(new FileReader(filePath.toString()));
2424
StringBuilder sb = new StringBuilder();
2525
String line = br.readLine();
2626
while (line != null) {

0 commit comments

Comments
 (0)