Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GameServiceImpl #5

Open
yaiselpm opened this issue Dec 27, 2023 · 0 comments
Open

GameServiceImpl #5

yaiselpm opened this issue Dec 27, 2023 · 0 comments

Comments

@yaiselpm
Copy link

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());
Captura desde 2023-12-26 23-07-01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant