Skip to content

Commit

Permalink
Fix bug method checkFeatureProjectionEquality
Browse files Browse the repository at this point in the history
There was a typo in the method checkFeatureProjectionEquality() in class FeatureSerializerTestUtils that could lead to the wrong assumption the feature projections of the given feature were equal, while it could be the case that in fact they were not.

This commit fixes this typo.
  • Loading branch information
stefanhahmann authored Aug 15, 2024
1 parent deaa6ba commit faae866
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static < T > boolean checkFeatureProjectionEquality( Feature< T > feature
Map< FeatureProjectionKey, FeatureProjection< T > > projections1 = feature1.projections().stream()
.collect( Collectors.toMap( FeatureProjection::getKey, x -> x ) );

Map< FeatureProjectionKey, FeatureProjection< T > > projections2 = feature1.projections().stream()
Map< FeatureProjectionKey, FeatureProjection< T > > projections2 = feature2.projections().stream()
.collect( Collectors.toMap( FeatureProjection::getKey, x -> x ) );

if ( !projections1.keySet().equals( projections2.keySet() ) )
Expand Down

0 comments on commit faae866

Please sign in to comment.