Fix LinkageUtils
Fix Linked
Dieser Commit ist enthalten in:
Ursprung
0aa3a8ec6c
Commit
4e7f420bf8
@ -59,14 +59,14 @@ public class LinkageUtils {
|
||||
Set<LinkageType> linkageTypeSet = new HashSet<>();
|
||||
for (Linked linked : linkages) {
|
||||
if (linked == null) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
LinkageType linkageType = linked.value();
|
||||
if (linkageType.getLinkagePredicate().test(clazz)) {
|
||||
linkageTypeSet.add(linked.value());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (linkageTypeSet.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
@ -24,13 +24,13 @@ import org.atteo.classindex.IndexAnnotated;
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@IndexAnnotated
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.TYPE})
|
||||
@Repeatable(Linked.Linkages.class)
|
||||
public @interface Linked {
|
||||
LinkageType value();
|
||||
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.TYPE})
|
||||
@interface Linkages {
|
||||
Linked[] value() default {};
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren