Remove org.jetbrains.annotations dependency

Its no longer needed, it was used for only a single @NotNull and its a redundant annotation at that.
This commit is contained in:
NovaFox161
2021-07-21 17:32:37 -05:00
parent 14d7dc8ba6
commit a7733fee57
3 changed files with 2 additions and 9 deletions
@@ -11,7 +11,6 @@ import org.dreamexposure.discal.core.entities.google.DisCalGoogleCredential;
import org.dreamexposure.discal.core.network.google.Authorization;
import org.dreamexposure.discal.core.object.BotSettings;
import org.dreamexposure.discal.core.object.calendar.CalendarData;
import org.jetbrains.annotations.NotNull;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.core.scheduler.Schedulers;
@@ -74,7 +73,7 @@ public class CalendarAuth {
.switchIfEmpty(Mono.error(new IllegalStateException("Empty not allowed")));
}
public static Mono<Calendar> getCalendarService(@NotNull CalendarData calData) {
public static Mono<Calendar> getCalendarService(CalendarData calData) {
return Mono.fromCallable(() -> {
if (calData.getExternal()) {
return authorize(calData).map(cred ->
@@ -49,4 +49,4 @@ public class ChannelUtils {
return getChannelFromNameOrId(nameOrId, guild)
.map(GuildMessageChannel::getName);
}
}
}
-6
View File
@@ -124,12 +124,6 @@
<version>${kotlinx.serialization.version}</version>
<type>pom</type>
</dependency>
<!--For Annotations-->
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>20.1.0</version>
</dependency>
<!-- slf4j-api - Need to force this for logback to work. I dunno -->
<dependency>
<groupId>org.slf4j</groupId>