Skip to content

Support repeated annotations in AnnotationContainer #1624

Open
@ccarbonellbh

Description

@ccarbonellbh

TypeDeclaration was updated to use AnnotationContainer (previously a List of Annotations), and the methods exposed only allow for adding a single instance of a given annotation. With the move to AnnotationContainer, I seem to no longer be able to generate code that looks like below:

@PropertySource(value = {"file:${properties.directory}/${properties.file}"}, ignoreResourceNotFound = true, factory = GenericPropertySourceFactory.class)
@PropertySource(value = {"file:${properties.directory}/qa-overrides.properties"}, ignoreResourceNotFound = true)
public class MyApplication extends SpringBootServletInitializer {
...

Is there a suggested way that this should now be handled? Should AnnotationContainer be modified to still support this workflow?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions