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

feat: add pattern annotations #920

Merged
merged 12 commits into from
May 13, 2023

Conversation

powercasgamer
Copy link
Contributor

@powercasgamer powercasgamer commented May 10, 2023

closes #752

image

@powercasgamer powercasgamer requested a review from kezz May 10, 2023 08:01
@powercasgamer powercasgamer force-pushed the feat/pattern-annotation branch from bdd7da8 to 3913bb5 Compare May 10, 2023 08:45
@powercasgamer powercasgamer marked this pull request as ready for review May 10, 2023 08:57
Comment on lines +43 to +46
@Documented
@Retention(RetentionPolicy.CLASS)
@Target({ METHOD, FIELD, PARAMETER, LOCAL_VARIABLE })
public @Pattern(TagInternals.TAG_NAME_REGEX) @interface TagPattern {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Documented
@Retention(RetentionPolicy.CLASS)
@Target({ METHOD, FIELD, PARAMETER, LOCAL_VARIABLE })
public @Pattern(TagInternals.TAG_NAME_REGEX) @interface TagPattern {
@Documented
@Pattern(TagInternals.TAG_NAME_REGEX)
@Retention(RetentionPolicy.CLASS)
@Target({ METHOD, FIELD, PARAMETER, LOCAL_VARIABLE })
public @interface TagPattern {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I do this it won't compile due to checkstyle. discord message

@powercasgamer powercasgamer requested a review from kashike May 12, 2023 19:45
@kashike kashike self-assigned this May 13, 2023
@kashike kashike added this to the 4.14.0 milestone May 13, 2023
@kashike kashike merged commit 75900f7 into KyoriPowered:main/4 May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add @Pattern annotations to methods that accept arguments representing tag names
3 participants