Skip to content

Unlikely argument type String for containsKey(Object) on a Map<EmailTemplate.EmailTemplatePart,String> #42

@ritonglue

Description

@ritonglue

In org.example.kickoff.business.email.EmailService in method buildTemplateContent one can read

Arrays.stream(EmailTemplatePart.values())
	.filter(part -> !templateParts.containsKey(part.getKey()))
	.forEach(part -> templateParts.putIfAbsent(part, emailTemplateService.build(templateEmail, part, messageParameters)));

I think this should be
.filter(part -> !templateParts.containsKey(part))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions