Regexp attribute of the @Pattern annotation reverts back by the studio to "." after modifying it from IntelliJ

I have encountered this issue when i tried to reuse the regexp strings by including them in a separate class as constants and use the constants in the regexp attribute of the @Pattern. every time i modify the annotation in IntelliJ like the following:
@Pattern(regexp = RegexpService.ALPHABET_WITH_SPACES_IN_BETWEEN)
and when i switch back to the studio i find it:
@Pattern("regexp = “.”)

any idea how i can disable this behavior?

Support team,

Can i get a feedback please.


Unfortunately Studio doesn’t support such case, you can’t disable this behavior.
Youtrack issue was created, it will be fixed in one of the next maintenance releases.

1 Like