SteamWar/BauSystem2.0
Archiviert
12
0

Fix LinkageUtils

Fix Linked
Dieser Commit ist enthalten in:
yoyosource 2021-04-17 16:39:40 +02:00
Ursprung 0aa3a8ec6c
Commit 4e7f420bf8
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -59,14 +59,14 @@ public class LinkageUtils {
Set<LinkageType> linkageTypeSet = new HashSet<>(); Set<LinkageType> linkageTypeSet = new HashSet<>();
for (Linked linked : linkages) { for (Linked linked : linkages) {
if (linked == null) { if (linked == null) {
return; continue;
} }
LinkageType linkageType = linked.value(); LinkageType linkageType = linked.value();
if (linkageType.getLinkagePredicate().test(clazz)) { if (linkageType.getLinkagePredicate().test(clazz)) {
linkageTypeSet.add(linked.value()); linkageTypeSet.add(linked.value());
} }
} }
if (linkageTypeSet.isEmpty()) { if (linkageTypeSet.isEmpty()) {
return; return;
} }

Datei anzeigen

@ -24,13 +24,13 @@ import org.atteo.classindex.IndexAnnotated;
import java.lang.annotation.*; import java.lang.annotation.*;
@IndexAnnotated @IndexAnnotated
@Retention(RetentionPolicy.CLASS) @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE}) @Target({ElementType.TYPE})
@Repeatable(Linked.Linkages.class) @Repeatable(Linked.Linkages.class)
public @interface Linked { public @interface Linked {
LinkageType value(); LinkageType value();
@Retention(RetentionPolicy.CLASS) @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE}) @Target({ElementType.TYPE})
@interface Linkages { @interface Linkages {
Linked[] value() default {}; Linked[] value() default {};