Former-commit-id: 6f9519291b9d43a9c1d2f50c95169392f341d60b [formerly ae794bd36ab53fed92a78ed19a6be192481eef83]
Former-commit-id: 467c8af982ac2fe3176d9abef3db75984d40e84d
This commit is contained in:
Ghost_chu committed 2019-08-19 15:47:14 +08:00
1 parent 79b6e07de8
commit d4dabaabb6
1 file changed
+2 -2
@@ -966,8 +966,8 @@ public class Util {
public static String readToString(@NotNull String fileName) {
String encoding = "UTF-8";
File file = new File(fileName);
Long filelength = file.length();
byte[] filecontent = new byte[filelength.intValue()];
long filelength = file.length();
byte[] filecontent = new byte[(int) filelength];
try {
FileInputStream in = new FileInputStream(file);
in.read(filecontent);