Rename method to be more clear this isnt for public use
This commit is contained in:
		| @@ -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(); | ||||
|   | ||||
| @@ -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<>(); | ||||
|  | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user