Skip to content

Commit

Permalink
Fix error messages (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Städing <[email protected]>
  • Loading branch information
w-lfchen and alexstaeding authored Mar 16, 2023
1 parent 6a50d34 commit f8377b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static void checkFields(final boolean strict) {
"FlatteningTransformingSequence should have a field who's raw type is type Sequence"));
final Field functionField = Stream.of(fields).filter(field -> field.getType().equals(Function.class)).findAny()
.orElseThrow(() -> new AssertionError(
"FlatteningTransformingSequence should have a field who's raw type is type Sequence"));
"FlatteningTransformingSequence should have a field who's raw type is type Function"));

VarianceTestExtensions.assertVariance(sequenceField.getGenericType(), strict,
new VarianceNode(genericT, Variance.COVARIANT));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static void checkSignature(final boolean strict) {
final Field sequenceField = Stream.of(fields).filter(field -> field.getType().equals(Sequence.class)).findAny()
.orElseThrow(() -> new AssertionError("TransformingSequence should have a field who's raw type is type Sequence"));
final Field functionField = Stream.of(fields).filter(field -> field.getType().equals(Function.class)).findAny()
.orElseThrow(() -> new AssertionError("TransformingSequence should have a field who's raw type is type Sequence"));
.orElseThrow(() -> new AssertionError("TransformingSequence should have a field who's raw type is type Function"));

VarianceTestExtensions.assertVariance(sequenceField.getGenericType(), strict,
new VarianceNode(genericT, Variance.COVARIANT));
Expand Down

0 comments on commit f8377b7

Please sign in to comment.