()
| 45 | private PluginLogger logger = null; |
| 46 | |
| 47 | public JavaPlugin() { |
| 48 | final ClassLoader classLoader = this.getClass().getClassLoader(); |
| 49 | if (!(classLoader instanceof PluginClassLoader)) { |
| 50 | throw new IllegalStateException("JavaPlugin requires " + PluginClassLoader.class.getName()); |
| 51 | } |
| 52 | ((PluginClassLoader) classLoader).initialize(this); |
| 53 | } |
| 54 | |
| 55 | protected JavaPlugin(@NotNull final JavaPluginLoader loader, @NotNull final PluginDescriptionFile description, @NotNull final File dataFolder, @NotNull final File file) { |
| 56 | final ClassLoader classLoader = this.getClass().getClassLoader(); |
nothing calls this directly
no test coverage detected