Fix LinkageUtils
Fix Linked
Dieser Commit ist enthalten in:
Ursprung
0aa3a8ec6c
Commit
4e7f420bf8
@ -59,7 +59,7 @@ 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)) {
|
||||||
|
@ -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 {};
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren