Skip to content

Commit

Permalink
Remove @CheckReturnValue from Once.Builder.subscribe (#2730)
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 authored Sep 15, 2024
1 parent 18c9508 commit 1c25f62
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/net/dv8tion/jda/api/utils/Once.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import net.dv8tion.jda.internal.utils.concurrent.task.GatewayTask;
import org.slf4j.Logger;

import javax.annotation.CheckReturnValue;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.time.Duration;
Expand Down Expand Up @@ -276,7 +275,6 @@ public Builder<E> setTimeoutPool(@Nonnull ScheduledExecutorService timeoutPool)
* @see Task#get()
*/
@Nonnull
@CheckReturnValue
public Task<E> subscribe(@Nonnull Consumer<E> callback)
{
final Once<E> once = new Once<>(jda, eventType, filters, timeoutCallback, timeout, timeoutPool);
Expand Down

0 comments on commit 1c25f62

Please sign in to comment.