From 252802dcbe68e610c08de18cc587f31bf5d8fc53 Mon Sep 17 00:00:00 2001 From: Starmism Date: Wed, 30 Jun 2021 10:13:12 -0600 Subject: [PATCH] Removed nullcheck from hashcode, and moved it up the chain. --- .../expansion/PlaceholderExpansion.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main/java/me/clip/placeholderapi/expansion/PlaceholderExpansion.java b/src/main/java/me/clip/placeholderapi/expansion/PlaceholderExpansion.java index 4fac2a1..1e71a45 100644 --- a/src/main/java/me/clip/placeholderapi/expansion/PlaceholderExpansion.java +++ b/src/main/java/me/clip/placeholderapi/expansion/PlaceholderExpansion.java @@ -367,19 +367,4 @@ public abstract class PlaceholderExpansion extends PlaceholderHook { public String getLink() { return null; } - - @Override - public int hashCode() { - if (this.getIdentifier() == null) { - throw new NullPointerException("Identifier must not be null! Error occurred in: " + this.getClass().getName()); - } - if (this.getAuthor() == null) { - throw new NullPointerException("Author must not be null! Error occurred in: " + this.getClass().getName()); - } - if (this.getVersion() == null) { - throw new NullPointerException("Version must not be null! Error occurred in: " + this.getClass().getName()); - } - - return super.hashCode(); - } }