Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow TYPE_USE on MagicConstant, Pattern, RegExp and Subst #98

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Feb 29, 2024

  1. Improve TYPE_USE striping regex

    The previous regex only supported the typed enum usage, and didn't work when the enum was at the end.
    
    The new regex should be much more lenient on the placement and handles use of enum values when imported.
    bric3 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    e29731c View commit details
    Browse the repository at this point in the history
  2. Allow TYPE_USE on MagicConstant, Pattern, RegExp and Subst

    This allows to place this annotation on the type declaration of generic types, e.g.
    
    Map<@pattern("p") String, @language("RegExp") String>
    bric3 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    29d8e9e View commit details
    Browse the repository at this point in the history