Skip to content

GameServiceImpl #5

@yaiselpm

Description

@yaiselpm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions