Update pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/internal/ast/AbstractAstVariableSym.java

Co-authored-by: Clément Fournier <clement.fournier@tu-dresden.de>
This commit is contained in:
Juan Martín Sotuyo DoderoandClément Fournier authored and GitHub committed 2022-11-29 09:59:21 -03:00
1 parent bdcca5698f
commit 1a5a576965
1 file changed
+1 -7
@@ -32,13 +32,7 @@ abstract class AbstractAstVariableSym
super(node, factory);
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