Add missing annotations

This commit is contained in:
filoghost 2021-09-14 23:33:34 +02:00
parent 134eba5f41
commit 03b6437f23
3 changed files with 5 additions and 1 deletions

View File

@ -21,10 +21,12 @@ public class APIItemHologramLine extends BaseItemHologramLine implements ItemHol
super(hologram, itemStack);
}
@Override
public @Nullable PickupListener getPickupListener() {
return pickupListener;
}
@Override
public void setPickupListener(@Nullable PickupListener pickupListener) {
checkNotDeleted();

View File

@ -12,6 +12,7 @@ import org.bukkit.plugin.Plugin;
@SuppressWarnings("deprecation")
public interface V2HologramLine extends HologramLine, EditableHologramLine {
@Override
V2Hologram getParent();
@Override

View File

@ -8,6 +8,7 @@ package me.filoghost.holographicdisplays.plugin.config;
import me.filoghost.fcommons.config.Config;
import me.filoghost.fcommons.config.mapped.MappedConfig;
import me.filoghost.fcommons.config.mapped.Path;
import org.jetbrains.annotations.NotNull;
import java.util.Arrays;
import java.util.List;
@ -66,7 +67,7 @@ public class SettingsModel implements MappedConfig {
boolean debug = false;
@Override
public List<String> getHeader() {
public @NotNull List<String> getHeader() {
return Arrays.asList(
"",
"Plugin page: https://dev.bukkit.org/projects/holographic-displays",