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:
Bukkit/Spigot 2012-12-27 10:36:10 -06:00
parent 6f3f4516d6
commit ac2908b781

View file

@ -281,7 +281,7 @@ public class JavaPluginLoader implements PluginLoader {
@Deprecated
public Class<?> getClassByName(final String name) {
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;
}
return getClassByName0(name);
@ -313,7 +313,7 @@ public class JavaPluginLoader implements PluginLoader {
@Deprecated
public void setClass(final String name, final Class<?> clazz) {
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;
}
setClass0(name, clazz);