Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
f1289c1192
Commit
bf8f8d2cf3
@ -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()) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren