Last active
March 31, 2022 10:11
-
-
Save Gogetter/aa75514ddb5f052daec04f23c4e2444c to your computer and use it in GitHub Desktop.
Revisions
-
Gogetter renamed this gist
Mar 31, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Gogetter created this gist
Mar 31, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ public record EmailData( String recipient, String subject, String message, Set<EmailAttachment> emailAttachments) { public EmailData { Objects.requireNonNull(recipient); subject = Objects.requireNonNullElse(subject, ""); message = Objects.requireNonNullElse(message, ""); } }