Skip to content

Commit

Permalink
[FLINK-29846] Apply spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
snuyanzin committed Dec 11, 2022
1 parent 467684e commit 052cd8e
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ public static DescribedPredicate<JavaClass> areDirectlyAnnotatedWithAtLeastOneOf
Class<? extends Annotation>... annotations) {
return Arrays.stream(annotations)
.map(CanBeAnnotated.Predicates::annotatedWith)
.reduce(
(canBeAnnotatedDescribedPredicate, other) ->
canBeAnnotatedDescribedPredicate.or(other))
.reduce((p, pOther) -> p.or(pOther))
.orElseThrow(IllegalArgumentException::new)
.forSubtype();
}
Expand All @@ -60,10 +58,7 @@ public static DescribedPredicate<JavaClass> areDirectlyAnnotatedWithAtLeastOneOf
*/
public static DescribedPredicate<JavaClass> containAnyFieldsInClassHierarchyThat(
DescribedPredicate<? super JavaField> predicate) {
return new ContainAnyFieldsThatPredicate<>(
"fields",
JavaClass::getAllFields,
predicate);
return new ContainAnyFieldsThatPredicate<>("fields", JavaClass::getAllFields, predicate);
}

/**
Expand Down

0 comments on commit 052cd8e

Please sign in to comment.