diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java index eb606a00c..243b60b52 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java @@ -219,7 +219,7 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl private Locale serverLocale; @Override - public @NonNull int[] serverVersion() { + public int @NonNull [] serverVersion() { if (this.version == null) { try { this.version = new int[3]; diff --git a/Core/src/main/java/com/plotsquared/core/command/Music.java b/Core/src/main/java/com/plotsquared/core/command/Music.java index 4a0ccf70b..52d15754a 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Music.java +++ b/Core/src/main/java/com/plotsquared/core/command/Music.java @@ -42,7 +42,8 @@ import com.plotsquared.core.util.InventoryUtil; import com.plotsquared.core.util.Permissions; import com.sk89q.worldedit.world.item.ItemTypes; import net.kyori.adventure.text.minimessage.Template; -import org.checkerframework.checker.nullness.qual.Nullable; + +import javax.annotation.Nullable; import java.util.Arrays; import java.util.Collection; diff --git a/Core/src/main/java/com/plotsquared/core/generator/ClassicPlotWorld.java b/Core/src/main/java/com/plotsquared/core/generator/ClassicPlotWorld.java index 058fda149..72cc41df6 100644 --- a/Core/src/main/java/com/plotsquared/core/generator/ClassicPlotWorld.java +++ b/Core/src/main/java/com/plotsquared/core/generator/ClassicPlotWorld.java @@ -35,7 +35,8 @@ import com.plotsquared.core.plot.PlotId; import com.plotsquared.core.queue.GlobalBlockQueue; import com.sk89q.worldedit.world.block.BlockTypes; import org.checkerframework.checker.nullness.qual.NonNull; -import org.checkerframework.checker.nullness.qual.Nullable; + +import javax.annotation.Nullable; @SuppressWarnings("WeakerAccess") public abstract class ClassicPlotWorld extends SquarePlotWorld { diff --git a/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java b/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java index 1e73909eb..490195f77 100644 --- a/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java +++ b/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java @@ -56,7 +56,9 @@ import com.sk89q.worldedit.util.Direction; import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.block.BaseBlock; import org.checkerframework.checker.nullness.qual.NonNull; -import org.checkerframework.checker.nullness.qual.Nullable; + +import javax.annotation.Nullable; + import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/Core/src/main/java/com/plotsquared/core/inject/factory/HybridPlotWorldFactory.java b/Core/src/main/java/com/plotsquared/core/inject/factory/HybridPlotWorldFactory.java index af281e3fc..e5bb6ab54 100644 --- a/Core/src/main/java/com/plotsquared/core/inject/factory/HybridPlotWorldFactory.java +++ b/Core/src/main/java/com/plotsquared/core/inject/factory/HybridPlotWorldFactory.java @@ -30,7 +30,8 @@ import com.plotsquared.core.generator.HybridPlotWorld; import com.plotsquared.core.generator.IndependentPlotGenerator; import com.plotsquared.core.plot.PlotId; import org.checkerframework.checker.nullness.qual.NonNull; -import org.checkerframework.checker.nullness.qual.Nullable; + +import javax.annotation.Nullable; public interface HybridPlotWorldFactory { diff --git a/Core/src/main/java/com/plotsquared/core/inject/factory/ProgressSubscriberFactory.java b/Core/src/main/java/com/plotsquared/core/inject/factory/ProgressSubscriberFactory.java index 92fc2ba5d..ad67c717b 100644 --- a/Core/src/main/java/com/plotsquared/core/inject/factory/ProgressSubscriberFactory.java +++ b/Core/src/main/java/com/plotsquared/core/inject/factory/ProgressSubscriberFactory.java @@ -30,7 +30,8 @@ import com.plotsquared.core.configuration.caption.Caption; import com.plotsquared.core.player.PlotPlayer; import com.plotsquared.core.queue.subscriber.ProgressSubscriber; import org.checkerframework.checker.nullness.qual.NonNull; -import org.checkerframework.checker.nullness.qual.Nullable; + +import javax.annotation.Nullable; public interface ProgressSubscriberFactory { diff --git a/Core/src/main/java/com/plotsquared/core/queue/subscriber/DefaultProgressSubscriber.java b/Core/src/main/java/com/plotsquared/core/queue/subscriber/DefaultProgressSubscriber.java index 405d1dcfc..59acf48fa 100644 --- a/Core/src/main/java/com/plotsquared/core/queue/subscriber/DefaultProgressSubscriber.java +++ b/Core/src/main/java/com/plotsquared/core/queue/subscriber/DefaultProgressSubscriber.java @@ -39,7 +39,8 @@ import com.plotsquared.core.util.task.TaskManager; import com.plotsquared.core.util.task.TaskTime; import net.kyori.adventure.text.minimessage.Template; import org.checkerframework.checker.nullness.qual.NonNull; -import org.checkerframework.checker.nullness.qual.Nullable; + +import javax.annotation.Nullable; import java.util.concurrent.atomic.AtomicBoolean;