3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-03 14:50:19 +01:00

Clear the Reflections scanners to stop it trying to scan (#1582)

Dieser Commit ist enthalten in:
rtm516 2020-11-23 01:08:59 +00:00 committet von GitHub
Ursprung 881e7a051c
Commit e412ba0993
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -198,7 +198,7 @@ public class FileUtils {
* @return The created Reflections object * @return The created Reflections object
*/ */
public static Reflections getReflections(String path) { public static Reflections getReflections(String path) {
Reflections reflections = new Reflections(new ConfigurationBuilder()); Reflections reflections = new Reflections(new ConfigurationBuilder().setScanners());
XmlSerializer serializer = new XmlSerializer(); XmlSerializer serializer = new XmlSerializer();
URL resource = FileUtils.class.getClassLoader().getResource("META-INF/reflections/" + path + "-reflections.xml"); URL resource = FileUtils.class.getClassLoader().getResource("META-INF/reflections/" + path + "-reflections.xml");
try (InputStream inputStream = resource.openConnection().getInputStream()) { try (InputStream inputStream = resource.openConnection().getInputStream()) {