SteamWar/BauSystem2.0
Archiviert
12
0

Fix somes stuff
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2022-08-26 21:17:06 +02:00
Ursprung f1289c1192
Commit bf8f8d2cf3

Datei anzeigen

@ -41,7 +41,7 @@ import java.util.stream.Collectors;
public class LinkageUtils {
private Map<Class<?>, Object> objectMap = new HashMap<>();
private List<Field> fieldsToLink = new LinkedList<>();
private List<Field> fieldsToLink = new ArrayList<>();
{
objectMap.put(Config.class, Config.getInstance());
@ -113,7 +113,8 @@ public class LinkageUtils {
}
linkageTypeList.forEach(linkageType -> linkageType.linkageConsumer.accept(object));
} else {
Object object = objectMap.computeIfAbsent(clazz, LinkageUtils::constructInstance);
Object object = constructInstance(clazz);
objectMap.put(clazz, object);
linkageTypeList.forEach(linkageType -> linkageType.linkageConsumer.accept(object));
for (Field field : clazz.getDeclaredFields()) {