mirror of
https://github.com/zaaarf/lillero-processor.git
synced 2024-11-13 02:29:22 +01:00
fix: repeatable annotation support fix
This commit is contained in:
parent
c46106beba
commit
38dd9ae869
2 changed files with 1 additions and 2 deletions
|
@ -23,7 +23,6 @@ import javax.tools.StandardLocation;
|
|||
import java.io.*;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
|
|
@ -31,7 +31,7 @@ public class ASTUtils {
|
|||
public static List<ExecutableElement> findAnnotatedMethods(TypeElement cl, Class<? extends Annotation> ann) {
|
||||
return cl.getEnclosedElements()
|
||||
.stream()
|
||||
.filter(e -> e.getAnnotation(ann) != null)
|
||||
.filter(e -> e.getAnnotationsByType(ann).length != 0)
|
||||
.map(e -> (ExecutableElement) e)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue