Update pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/internal/ast/AbstractAstExecSymbol.java
Co-authored-by: Clément Fournier <clement.fournier@tu-dresden.de>
This commit is contained in:
1 parent
cc4da08d86
commit
0443e8a7c4
1 file changed
+1
-7
+1
-7
@@ -43,13 +43,7 @@ abstract class AbstractAstExecSymbol<T extends ASTMethodOrConstructorDeclaration
|
||||
);
|
||||
|
||||
NodeStream<ASTAnnotation> annotStream = node.getDeclaredAnnotations();
|
||||
if (annotStream.isEmpty()) {
|
||||
declaredAnnotations = Collections.emptyList();
|
||||
} else {
|
||||
final List<SymAnnot> annotations = new ArrayList<>();
|
||||
annotStream.forEach(n -> annotations.add(new AstSymbolicAnnot(n)));
|
||||
declaredAnnotations = Collections.unmodifiableList(annotations);
|
||||
}
|
||||
declaredAnnotations = Collections.unmodifiableList(annotStream.toList(ASTSymbolicAnnot::new));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user