We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23bce29 commit 4209b3dCopy full SHA for 4209b3d
lib/utils/FileUtil.java
@@ -18,9 +18,9 @@
18
19
public class FileUtil {
20
21
- public static String getFileContent(String filePath) throws IOException {
+ public static String getFileContent(Path filePath) throws IOException {
22
23
- BufferedReader br = new BufferedReader(new FileReader(filePath));
+ BufferedReader br = new BufferedReader(new FileReader(filePath.toString()));
24
StringBuilder sb = new StringBuilder();
25
String line = br.readLine();
26
while (line != null) {
0 commit comments