From 0399ed2c96a88199a927437f58a8590dab58da97 Mon Sep 17 00:00:00 2001 From: MrMicky Date: Mon, 22 Jul 2019 15:53:02 +0200 Subject: [PATCH] Update bStats and add missing @NotNull annotations --- compatibility/v7/pom.xml | 1 - plugin/pom.xml | 2 +- .../config/GlobalSelectionConfig.java | 6 ++++-- .../event/ClipboardChangeEvent.java | 2 +- .../event/SelectionChangeEvent.java | 1 + .../event/VisualizationToggleEvent.java | 1 + 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/compatibility/v7/pom.xml b/compatibility/v7/pom.xml index 52773a6..cf628ec 100644 --- a/compatibility/v7/pom.xml +++ b/compatibility/v7/pom.xml @@ -36,7 +36,6 @@ fawe-api 1.13.164 provided - diff --git a/plugin/pom.xml b/plugin/pom.xml index 4992fa0..2006151 100644 --- a/plugin/pom.xml +++ b/plugin/pom.xml @@ -104,7 +104,7 @@ org.bstats bstats-bukkit - 1.4 + 1.5 compile diff --git a/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/config/GlobalSelectionConfig.java b/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/config/GlobalSelectionConfig.java index af871cf..564e4df 100644 --- a/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/config/GlobalSelectionConfig.java +++ b/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/config/GlobalSelectionConfig.java @@ -27,11 +27,13 @@ public int getMaxSelectionSize() { return maxSelectionSize; } - public @NotNull SelectionConfig primary() { + @NotNull + public SelectionConfig primary() { return primary; } - public @NotNull SelectionConfig secondary() { + @NotNull + public SelectionConfig secondary() { return secondary; } } diff --git a/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/event/ClipboardChangeEvent.java b/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/event/ClipboardChangeEvent.java index cb68e84..0de41f7 100644 --- a/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/event/ClipboardChangeEvent.java +++ b/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/event/ClipboardChangeEvent.java @@ -9,7 +9,6 @@ /** * Called when the WorldEdit clipboard of a player changed - * */ public class ClipboardChangeEvent extends Event { @@ -58,6 +57,7 @@ public HandlerList getHandlers() { return handlers; } + @NotNull public static HandlerList getHandlerList() { return handlers; } diff --git a/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/event/SelectionChangeEvent.java b/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/event/SelectionChangeEvent.java index 61bfe7b..3941ba1 100644 --- a/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/event/SelectionChangeEvent.java +++ b/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/event/SelectionChangeEvent.java @@ -57,6 +57,7 @@ public HandlerList getHandlers() { return handlers; } + @NotNull public static HandlerList getHandlerList() { return handlers; } diff --git a/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/event/VisualizationToggleEvent.java b/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/event/VisualizationToggleEvent.java index f3efe94..0b35ffc 100644 --- a/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/event/VisualizationToggleEvent.java +++ b/plugin/src/main/java/fr/mrmicky/worldeditselectionvisualizer/event/VisualizationToggleEvent.java @@ -55,6 +55,7 @@ public HandlerList getHandlers() { return handlers; } + @NotNull public static HandlerList getHandlerList() { return handlers; }