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:
1 parent
bdcca5698f
commit
1a5a576965
1 file changed
+1
-7
+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
|
||||
|
||||
Reference in new issue
Block a user