From ba0e99baef776533246294c65a000d84bfda2340 Mon Sep 17 00:00:00 2001 From: TheosRee Date: Thu, 27 Jun 2024 15:35:55 +0200 Subject: [PATCH] remove code comments, see https://github.com/uber/NullAway/issues/801 --- .../quest/event/PrimaryServerThreadComposedEvent.java | 4 ++-- .../betonquest/quest/event/PrimaryServerThreadEvent.java | 2 +- .../quest/event/PrimaryServerThreadStaticEvent.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/betonquest/betonquest/quest/event/PrimaryServerThreadComposedEvent.java b/src/main/java/org/betonquest/betonquest/quest/event/PrimaryServerThreadComposedEvent.java index b01e6d997a..ceb0eade67 100644 --- a/src/main/java/org/betonquest/betonquest/quest/event/PrimaryServerThreadComposedEvent.java +++ b/src/main/java/org/betonquest/betonquest/quest/event/PrimaryServerThreadComposedEvent.java @@ -50,7 +50,7 @@ public PrimaryServerThreadComposedEvent(final ComposedEvent synced, final Primar public void execute(@Nullable final Profile profile) throws QuestRuntimeException { call(() -> { synced.execute(profile); - return null; // NullAway false positive: Void -> null + return null; }); } @@ -59,7 +59,7 @@ public void execute(@Nullable final Profile profile) throws QuestRuntimeExceptio public void execute() throws QuestRuntimeException { call(() -> { synced.execute(); - return null; // NullAway false positive: Void -> null + return null; }); } } diff --git a/src/main/java/org/betonquest/betonquest/quest/event/PrimaryServerThreadEvent.java b/src/main/java/org/betonquest/betonquest/quest/event/PrimaryServerThreadEvent.java index 9756e9262a..1bc3629784 100644 --- a/src/main/java/org/betonquest/betonquest/quest/event/PrimaryServerThreadEvent.java +++ b/src/main/java/org/betonquest/betonquest/quest/event/PrimaryServerThreadEvent.java @@ -49,7 +49,7 @@ public PrimaryServerThreadEvent(final Event synced, final PrimaryServerThreadDat public void execute(final Profile profile) throws QuestRuntimeException { call(() -> { synced.execute(profile); - return null; // NullAway false positive: Void -> null + return null; }); } } diff --git a/src/main/java/org/betonquest/betonquest/quest/event/PrimaryServerThreadStaticEvent.java b/src/main/java/org/betonquest/betonquest/quest/event/PrimaryServerThreadStaticEvent.java index 426e93afa8..c0ec59728f 100644 --- a/src/main/java/org/betonquest/betonquest/quest/event/PrimaryServerThreadStaticEvent.java +++ b/src/main/java/org/betonquest/betonquest/quest/event/PrimaryServerThreadStaticEvent.java @@ -30,7 +30,7 @@ public PrimaryServerThreadStaticEvent(final StaticEvent synced, final PrimarySer public void execute() throws QuestRuntimeException { call(() -> { synced.execute(); - return null; // NullAway false positive: Void -> null + return null; }); } }