-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Hi, i'm reading your book and changed the version of spring to 3.1.6 with Java 17, I had this issues
'map(java.util.function.Function<? super com.killer.gamification.domain.BadgeType,? extends R>)' in 'java.util.stream.Stream' cannot be applied to '()' in the processForBadges method. Can you give me some advice?
Set alreadyGotBadges;
alreadyGotBadges = badgeRepository
.findByUserIdOrderByBadgeTimestampDesc(solvedChallenge.getUserId())
.stream()
.map(BadgeCard::getBadgeType)
.collect(Collectors.toSet());

Metadata
Metadata
Assignees
Labels
No labels