mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-02-05 15:55:28 +01:00
Use ASYNC_EXECUTOR on one more place
This commit is contained in:
parent
d072c14843
commit
92f744bbfa
@ -79,7 +79,7 @@ public final class CloudExpansionManager {
|
||||
@NotNull
|
||||
private final Map<String, CompletableFuture<File>> await = new ConcurrentHashMap<>();
|
||||
|
||||
private final ExecutorService ASYNC_EXECUTOR =
|
||||
static final ExecutorService ASYNC_EXECUTOR =
|
||||
Executors.newCachedThreadPool(
|
||||
new ThreadFactoryBuilder().setNameFormat("placeholderapi-io-#%1$d").build());
|
||||
|
||||
|
@ -394,7 +394,7 @@ public final class LocalExpansionManager implements Listener {
|
||||
} catch (final Exception ex) {
|
||||
throw new CompletionException(ex);
|
||||
}
|
||||
});
|
||||
}, CloudExpansionManager.ASYNC_EXECUTOR);
|
||||
}
|
||||
|
||||
|
||||
|
@ -67,7 +67,7 @@ public class FileUtil {
|
||||
if (clazz.isAssignableFrom(loaded)) {
|
||||
classes.add(loaded.asSubclass(clazz));
|
||||
}
|
||||
} catch (NoClassDefFoundError ignored) {
|
||||
} catch (final NoClassDefFoundError ignored) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -76,4 +76,5 @@ public class FileUtil {
|
||||
}
|
||||
return classes.get(0);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user