mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-02-06 04:05: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
|
@NotNull
|
||||||
private final Map<String, CompletableFuture<File>> await = new ConcurrentHashMap<>();
|
private final Map<String, CompletableFuture<File>> await = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
private final ExecutorService ASYNC_EXECUTOR =
|
static final ExecutorService ASYNC_EXECUTOR =
|
||||||
Executors.newCachedThreadPool(
|
Executors.newCachedThreadPool(
|
||||||
new ThreadFactoryBuilder().setNameFormat("placeholderapi-io-#%1$d").build());
|
new ThreadFactoryBuilder().setNameFormat("placeholderapi-io-#%1$d").build());
|
||||||
|
|
||||||
|
@ -394,7 +394,7 @@ public final class LocalExpansionManager implements Listener {
|
|||||||
} catch (final Exception ex) {
|
} catch (final Exception ex) {
|
||||||
throw new CompletionException(ex);
|
throw new CompletionException(ex);
|
||||||
}
|
}
|
||||||
});
|
}, CloudExpansionManager.ASYNC_EXECUTOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ public class FileUtil {
|
|||||||
if (clazz.isAssignableFrom(loaded)) {
|
if (clazz.isAssignableFrom(loaded)) {
|
||||||
classes.add(loaded.asSubclass(clazz));
|
classes.add(loaded.asSubclass(clazz));
|
||||||
}
|
}
|
||||||
} catch (NoClassDefFoundError ignored) {
|
} catch (final NoClassDefFoundError ignored) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -76,4 +76,5 @@ public class FileUtil {
|
|||||||
}
|
}
|
||||||
return classes.get(0);
|
return classes.get(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user