* Fix WeManager?

* Fix WeManager?

* Also register WEManager if not available, like TaskManager.
Dieser Commit ist enthalten in:
Aurélien 2021-12-23 12:39:11 +01:00 committet von GitHub
Ursprung 7da921e075
Commit ca5ad58f01
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -32,7 +32,7 @@ public class WEManager {
* @deprecated Use {@link #weManager()} instead.
*/
@Deprecated(forRemoval = true, since = "2.0.0")
private final WEManager IMP = new WEManager();
public static WEManager IMP = new WEManager();
private final ArrayDeque<FaweMaskManager> managers = new ArrayDeque<>();
private WEManager() {
@ -45,6 +45,9 @@ public class WEManager {
* @return an instance of the WEManager
*/
public static WEManager weManager() {
if (INSTANCE == null) {
INSTANCE = new WEManager();
}
return INSTANCE;
}