mirror of
https://github.com/zaaarf/lillero-processor.git
synced 2024-11-22 15:34:57 +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.io.*;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.net.URL;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class ASTUtils {
|
||||||
public static List<ExecutableElement> findAnnotatedMethods(TypeElement cl, Class<? extends Annotation> ann) {
|
public static List<ExecutableElement> findAnnotatedMethods(TypeElement cl, Class<? extends Annotation> ann) {
|
||||||
return cl.getEnclosedElements()
|
return cl.getEnclosedElements()
|
||||||
.stream()
|
.stream()
|
||||||
.filter(e -> e.getAnnotation(ann) != null)
|
.filter(e -> e.getAnnotationsByType(ann).length != 0)
|
||||||
.map(e -> (ExecutableElement) e)
|
.map(e -> (ExecutableElement) e)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue