Skip to content

FASTJavaAnnotation created in modifiers for FASTJavaVarDeclStatement #250

@Marpioux

Description

@Marpioux

Hello,

I came across an interesting behavior while working with FAST-Java. When parsing the following Java code snippet using FAST:

@Value("${com.example}")
private String test;

The FASTJavaVarDeclStatement created included two things in the modifiers part :

  • the actual token (e.g, public, private, ...) as FASTJavaModifier
  • the annotation (here @/Value) as FASTJavaAnnotation

Image

I was wondering if this is the expected behavior. If so, could you please provide some context on why annotations are included within the modifiers section? If not, would it make sense to adjust this so that annotations and access modifiers are handled separately?

Thank you in advance for your time and insights.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions