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

Fix annotation processing patterns #64

Merged
merged 1 commit into from
Mar 10, 2023
Merged

Conversation

graemerocher
Copy link
Contributor

@graemerocher graemerocher commented Mar 10, 2023

The annotation processing needs to catch all jakarta validation annotations for it work incrementally because Java's APT is not aware of stereotypes. Also IntrospectedValidationIndexesVisitor didn't specify any limitation so would break incremental compilation.

@sonarcloud
Copy link

sonarcloud bot commented Mar 10, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@@ -53,7 +53,7 @@ public class ValidationVisitor implements TypeElementVisitor<Object, Object> {

@Override
public Set<String> getSupportedAnnotationNames() {
return Set.of(ANN_CONSTRAINT, ANN_VALID);
return Set.of("jakarta.validation.*");
Copy link
Contributor

Choose a reason for hiding this comment

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

please, delete unused ANN_VALID and ANN_CONSTRAINT constants.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

they are not unused

@graemerocher graemerocher merged commit 212808b into master Mar 10, 2023
@graemerocher graemerocher deleted the incremental-handling branch March 10, 2023 10:50
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.

2 participants