tandraschko commented on code in PR #175:
URL: https://github.com/apache/bval/pull/175#discussion_r1932120406
##########
bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java:
##########
@@ -201,32 +217,55 @@ public void afterStart(@Observes final
AfterDeploymentValidation clearEvent) {
notBValAnnotation.clear();
}
- private boolean hasValidationAnnotation(final Collection<? extends
Annotated> annotateds) {
- return annotateds.stream().anyMatch(this::hasValidation);
+ private boolean hasValidation(final AnnotatedElement[] elements) {
+ for (int i = 0; i < elements.length; i++) {
Review Comment:
same here, for-each loop
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]