mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2025-02-16 01:41:26 +01:00
Remove some noinspection comments
This commit is contained in:
parent
a4d4c49b72
commit
29a806e734
@ -30,16 +30,16 @@ import java.util.function.Consumer;
|
||||
|
||||
public class BukkitCommandExecutorProvider implements CommandExecutorProvider {
|
||||
|
||||
private static final boolean HAS_PAPER_FORWARDING;
|
||||
private static final boolean HAS_PAPER_FORWARDING = hasPaperForwarding();
|
||||
|
||||
static {
|
||||
boolean has = false;
|
||||
@SuppressWarnings("JavaReflectionMemberAccess") // Paper only
|
||||
private static boolean hasPaperForwarding() {
|
||||
try {
|
||||
//noinspection JavaReflectionMemberAccess
|
||||
Server.class.getDeclaredMethod("createCommandSender", Consumer.class);
|
||||
has = true;
|
||||
return true;
|
||||
} catch (Throwable ignored) {}
|
||||
HAS_PAPER_FORWARDING = has;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private final BukkitDiscordSRV discordSRV;
|
||||
|
@ -36,7 +36,6 @@ public class DiscordSRVDependencyManager {
|
||||
this.dependencyManager = new ApplicationDependencyManager(cacheDirectory);
|
||||
|
||||
if (initialLoader != null) {
|
||||
//noinspection ResultOfMethodCallIgnored
|
||||
dependencyManager.include(initialLoader.getDependencyManager());
|
||||
}
|
||||
}
|
||||
|
@ -146,10 +146,9 @@ public class DestinationLookupHelper {
|
||||
futures.add(future);
|
||||
}
|
||||
|
||||
//noinspection rawtypes
|
||||
return CompletableFuture.allOf(
|
||||
futures.stream()
|
||||
.map(future -> (CompletableFuture) future)
|
||||
.map(future -> (CompletableFuture<?>) future)
|
||||
.toArray(CompletableFuture[]::new)
|
||||
).thenApply(v -> {
|
||||
Set<Long> idsDuplicateCheck = new HashSet<>();
|
||||
|
Loading…
Reference in New Issue
Block a user