From d6280ec945ec714f360c1b35583dd9f4e68e3d26 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 29 Jun 2019 04:23:51 +1000 Subject: [PATCH] Avoid redundant check for performance critical code --- .../main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java index 94da99999..d3a2747f4 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java @@ -200,7 +200,6 @@ public enum BukkitAdapter { * @return The Bukkit Material */ public static Material adapt(BlockType blockType) { - checkNotNull(blockType); return getAdapter().adapt(blockType); } @@ -250,7 +249,6 @@ public enum BukkitAdapter { * @return The blocktype */ public static BlockType asBlockType(Material material) { - checkNotNull(material); return getAdapter().asBlockType(material); } @@ -273,7 +271,6 @@ public enum BukkitAdapter { * @return The WorldEdit BlockState */ public static BlockState adapt(BlockData blockData) { - checkNotNull(blockData); return getAdapter().adapt(blockData); } @@ -288,7 +285,6 @@ public enum BukkitAdapter { * @return The Bukkit BlockData */ public static BlockData adapt(BlockStateHolder block) { - checkNotNull(block); return getAdapter().adapt(block); }