mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-07 09:52:34 -05:00
Beep
Former-commit-id: 6f9519291b9d43a9c1d2f50c95169392f341d60b [formerly ae794bd36ab53fed92a78ed19a6be192481eef83] Former-commit-id: 467c8af982ac2fe3176d9abef3db75984d40e84d
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user