You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/11/02 13:39:15 UTC

[GitHub] [flink] snuyanzin commented on a diff in pull request #21221: [FLINK-29846] Upgrade ArchUnit to 1.0.0

snuyanzin commented on code in PR #21221:
URL: https://github.com/apache/flink/pull/21221#discussion_r1011782751


##########
flink-architecture-tests/flink-architecture-tests-base/src/main/java/org/apache/flink/architecture/common/Predicates.java:
##########
@@ -48,7 +47,9 @@ public static DescribedPredicate<JavaClass> areDirectlyAnnotatedWithAtLeastOneOf
             Class<? extends Annotation>... annotations) {
         return Arrays.stream(annotations)
                 .map(CanBeAnnotated.Predicates::annotatedWith)
-                .reduce(DescribedPredicate::or)
+                .reduce(
+                        (canBeAnnotatedDescribedPredicate, other) ->
+                                canBeAnnotatedDescribedPredicate.or(other))

Review Comment:
   seems like that here
   https://github.com/TNG/ArchUnit/commit/2065e012e26b2913257efc04fc4d4868176b459e#diff-05df2dd6f3ee640302d7633e8d17fb55cee3a3a43c3d72e41e727a0ef8037dc3R191-R209



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org