refactor: make field final

This commit is contained in:
aro 2023-01-22 14:52:44 +01:00
parent ebdcdd34ae
commit 9a921d0b7a

View file

@ -11,7 +11,7 @@ public class InternalsProvider {
try {
final String packageName = Internals.class.getPackage().getName();
final String bukkitVersion = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3];
String fullClassName = packageName + "." + bukkitVersion;
final String fullClassName = packageName + "." + bukkitVersion;
internals = (Internals) Class.forName(fullClassName).getConstructors()[0].newInstance();
} catch (InvocationTargetException | ClassNotFoundException | InstantiationException | IllegalAccessException |
ClassCastException exception) {