Skip to content

Commit d6fc939

Browse files
committed
Workaround AP throwing exception if there is a compile error in the file
1 parent a012b60 commit d6fc939

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

annotation-processor/src/main/java/org/fury_phoenix/mixinAp/annotation/ClientMixinValidator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ private Collection<Object> getTargets(TypeElement annotatedMixinClass) {
166166

167167
clzsses = wrappedClzss.stream()
168168
.map(AnnotationValue::getValue)
169+
.filter(o -> o instanceof TypeMirror)
169170
.map(TypeMirror.class::cast)
170171
.collect(Collectors.toSet());
171172

0 commit comments

Comments
 (0)