Performance Improvements (#340)

* Performance Improvements

* More Optimizations

* Even More Optimizations & Cleanups

* Almost a recode I guess
This commit is contained in:
Crypto Morin
2020-07-16 09:32:22 -07:00
committed by GitHub
parent f9f59f1f96
commit 54d5757d0a
52 changed files with 876 additions and 875 deletions

View File

@@ -25,9 +25,7 @@ import me.clip.placeholderapi.PlaceholderHook;
import org.apache.commons.lang.Validate;
import org.bukkit.plugin.Plugin;
/**
* Use {@link me.clip.placeholderapi.expansion.PlaceholderExpansion} instead
*/
@SuppressWarnings("DeprecatedIsStillUsed")
@Deprecated
public abstract class EZPlaceholderHook extends PlaceholderHook {
@@ -35,8 +33,8 @@ public abstract class EZPlaceholderHook extends PlaceholderHook {
private final String plugin;
public EZPlaceholderHook(Plugin plugin, String identifier) {
Validate.notNull(plugin, "Plugin can not be null!");
Validate.notNull(identifier, "Placeholder name can not be null!");
Validate.notNull(plugin, "Plugin cannot be null");
Validate.notNull(identifier, "Placeholder name cannot be null");
this.identifier = identifier;
this.plugin = plugin.getName();
}