AntiCheatBase/src/main/java/utils/objects/RemoteClassLoader.java
/**
     * This will put all the entries into a thread-safe Set
     */
This will put all the entries into a thread-safe Set
This will put all the entries into a thread - safe Set
private static Set<String> loadNames(byte[] jarBytes) throws IOException {
        Set<String> set = new HashSet<>();
        try (ZipInputStream jis =
                     new ZipInputStream(new ByteArrayInputStream(jarBytes))) {
            ZipEntry entry;
            while ((entry = jis.getNextEntry()) != null) {
                set.add(entry.getName());
            }
        }
        return set;
    }
private static Set < String > loadNames ( byte [ ] jarBytes ) throws IOException { Set < String > set = new HashSet < > ( ) ; try ( ZipInputStream jis = new ZipInputStream ( new ByteArrayInputStream ( jarBytes ) ) ) { ZipEntry entry ; while ( ( entry = jis . getNextEntry ( ) ) != null ) { set . add ( entry . getName ( ) ) ; } } return set ; }
This will put all the entries into a thread-safe Set
This will put all the entries into a thread - safe Set