feat: 优化方法调用

This commit is contained in:
coding 2018-03-18 12:06:52 +00:00
parent 320cc0479e
commit a041e8e2d2

View File

@ -35,7 +35,7 @@ var global = this;
var pluginYml; var pluginYml;
function checkClassLoader() { function checkClassLoader() {
var classLoader = java.lang.Thread.currentThread().getContextClassLoader(); var classLoader = java.lang.Thread.currentThread().contextClassLoader;
pluginYml = classLoader.getResource("plugin.yml"); pluginYml = classLoader.getResource("plugin.yml");
if (pluginYml === null) { if (pluginYml === null) {
log.info("==================== ERROR ===================="); log.info("==================== ERROR ====================");