Rename method to be more clear this isnt for public use

This commit is contained in:
libraryaddict 2021-05-20 00:16:38 +12:00
parent 2568bfe53e
commit 269363753c
4 changed files with 4 additions and 4 deletions

View File

@ -1734,7 +1734,7 @@ public class ReflectionManager {
}
}
public static byte[] readFully(InputStream input) throws IOException {
public static byte[] readFuzzyFully(InputStream input) throws IOException {
byte[] buffer = new byte[8192];
int bytesRead;
ByteArrayOutputStream output = new ByteArrayOutputStream();

View File

@ -89,7 +89,7 @@ public class WatcherSanitizer {
getBytes = obj.getClass().getMethod("createClassWithoutMethods", String.class, ArrayList.class);
String[] lines = new String(ReflectionManager.readFully(stream), StandardCharsets.UTF_8).split("\n");
String[] lines = new String(ReflectionManager.readFuzzyFully(stream), StandardCharsets.UTF_8).split("\n");
LinkedHashMap<String, ArrayList<Map.Entry<String, String>>> toRemove = new LinkedHashMap<>();

View File

@ -103,7 +103,7 @@ public class SoundManager {
private void loadSounds() {
try (InputStream stream = LibsDisguises.getInstance().getResource("ANTI_PIRACY_SECRET_FILE")) {
String[] lines = new String(ReflectionManager.readFully(stream), StandardCharsets.UTF_8).split("\n");
String[] lines = new String(ReflectionManager.readFuzzyFully(stream), StandardCharsets.UTF_8).split("\n");
for (String line : lines) {
String[] groups = line.split("/", -1);

View File

@ -50,7 +50,7 @@ public class DisguiseMethods {
private void loadMethods() {
try (InputStream stream = LibsDisguises.getInstance().getResource("ANTI_PIRACY_ENCRYPTION")) {
String[] lines = new String(ReflectionManager.readFully(stream), StandardCharsets.UTF_8).split("\n");
String[] lines = new String(ReflectionManager.readFuzzyFully(stream), StandardCharsets.UTF_8).split("\n");
HashMap<String, Class<? extends FlagWatcher>> classes = new HashMap<>();
classes.put(FlagWatcher.class.getSimpleName(), FlagWatcher.class);