java:S6857 false positive when using @Value to inject directly into a Map

Hi , we also noticed it happens when the default value is empty it complains of malformed property.
Eg.:

    @Value("${management.metrics.server.excluded-uris:}")
    private List<String> excludedUris;

Where the default would be an empty array by applying the :

1 Like