Simplified code, no need for internal variable.

This commit is contained in:
Tastybento 2018-02-07 19:16:05 -08:00
parent 3f35afc76a
commit e4fbc6fab1

View File

@ -58,11 +58,8 @@ public class AddonClassLoader extends URLClassLoader {
throw new InvalidAddonInheritException("Main class doesn't not extends super class 'Addon'");
}
Addon addon = addonClass.newInstance();
this.addon = addonClass.newInstance();
addon.setDescription(this.asDescription(data));
this.addon = addon;
}
private AddonDescription asDescription(Map<String, String> data){