Disable InterfaceIsType Checkstyle check

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
Bukkit/Spigot 2023-05-28 08:21:48 -04:00
parent 6c9fc2844d
commit dc42ac1025
3 changed files with 0 additions and 11 deletions

View File

@ -84,7 +84,6 @@
<!-- See http://checkstyle.sourceforge.net/config_design.html --> <!-- See http://checkstyle.sourceforge.net/config_design.html -->
<module name="FinalClass"/> <module name="FinalClass"/>
<module name="InterfaceIsType"/>
<!-- See http://checkstyle.sourceforge.net/config_misc.html --> <!-- See http://checkstyle.sourceforge.net/config_misc.html -->
<module name="ArrayTypeStyle"/> <module name="ArrayTypeStyle"/>

View File

@ -6,7 +6,6 @@ import org.bukkit.MinecraftExperimental;
import org.bukkit.NamespacedKey; import org.bukkit.NamespacedKey;
import org.bukkit.Registry; import org.bukkit.Registry;
import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
/** /**
* Represents a material that may be used in an {@link ArmorTrim}. * Represents a material that may be used in an {@link ArmorTrim}.
@ -59,8 +58,4 @@ public interface TrimMaterial extends Keyed {
* {@link Material#AMETHYST_SHARD}. * {@link Material#AMETHYST_SHARD}.
*/ */
public static final TrimMaterial AMETHYST = Registry.TRIM_MATERIAL.get(NamespacedKey.minecraft("amethyst")); public static final TrimMaterial AMETHYST = Registry.TRIM_MATERIAL.get(NamespacedKey.minecraft("amethyst"));
@NotNull
@Override
public NamespacedKey getKey(); // Satisfies Checkstyle for now
} }

View File

@ -6,7 +6,6 @@ import org.bukkit.MinecraftExperimental;
import org.bukkit.NamespacedKey; import org.bukkit.NamespacedKey;
import org.bukkit.Registry; import org.bukkit.Registry;
import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
/** /**
* Represents a pattern that may be used in an {@link ArmorTrim}. * Represents a pattern that may be used in an {@link ArmorTrim}.
@ -63,8 +62,4 @@ public interface TrimPattern extends Keyed {
* {@link Material#SPIRE_ARMOR_TRIM_SMITHING_TEMPLATE}. * {@link Material#SPIRE_ARMOR_TRIM_SMITHING_TEMPLATE}.
*/ */
public static final TrimPattern SPIRE = Registry.TRIM_PATTERN.get(NamespacedKey.minecraft("spire")); public static final TrimPattern SPIRE = Registry.TRIM_PATTERN.get(NamespacedKey.minecraft("spire"));
@NotNull
@Override
public NamespacedKey getKey(); // Satisfies Checkstyle for now
} }