mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Use correct warning in JavaPluginLoader. Fixes BUKKIT-3315
The warning message printed with the stack traces on the deprecated methods mistakingly use the wrong method signature in the description. By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
parent
6f3f4516d6
commit
ac2908b781
1 changed files with 2 additions and 2 deletions
|
@ -281,7 +281,7 @@ public class JavaPluginLoader implements PluginLoader {
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Class<?> getClassByName(final String name) {
|
public Class<?> getClassByName(final String name) {
|
||||||
if (warn) {
|
if (warn) {
|
||||||
server.getLogger().log(Level.WARNING, "Method \"public Plugin loadPlugin(File, boolean)\" is Deprecated, and may be removed in a future version of Bukkit", new AuthorNagException(""));
|
server.getLogger().log(Level.WARNING, "Method \"public Class<?> getClassByName(String)\" is Deprecated, and may be removed in a future version of Bukkit", new AuthorNagException(""));
|
||||||
warn = false;
|
warn = false;
|
||||||
}
|
}
|
||||||
return getClassByName0(name);
|
return getClassByName0(name);
|
||||||
|
@ -313,7 +313,7 @@ public class JavaPluginLoader implements PluginLoader {
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void setClass(final String name, final Class<?> clazz) {
|
public void setClass(final String name, final Class<?> clazz) {
|
||||||
if (warn) {
|
if (warn) {
|
||||||
server.getLogger().log(Level.WARNING, "Method \"public Plugin loadPlugin(File, boolean)\" is Deprecated, and may be removed in a future version of Bukkit", new AuthorNagException(""));
|
server.getLogger().log(Level.WARNING, "Method \"public void setClass(String, Class<?>)\" is Deprecated, and may be removed in a future version of Bukkit", new AuthorNagException(""));
|
||||||
warn = false;
|
warn = false;
|
||||||
}
|
}
|
||||||
setClass0(name, clazz);
|
setClass0(name, clazz);
|
||||||
|
|
Loading…
Reference in a new issue