This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 1ed062774d23bc06cf3b3efa26e9da13e339fddc Author: HoussemNasri <houssemnasri2...@gmail.com> AuthorDate: Fri Nov 15 14:33:04 2024 +0100 Convert ExtractedContacts class to a record --- .../james/transport/mailets/ContactExtractor.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/mailet/standard/src/main/java/org/apache/james/transport/mailets/ContactExtractor.java b/mailet/standard/src/main/java/org/apache/james/transport/mailets/ContactExtractor.java index a87699b6cf..93d12fa3ad 100644 --- a/mailet/standard/src/main/java/org/apache/james/transport/mailets/ContactExtractor.java +++ b/mailet/standard/src/main/java/org/apache/james/transport/mailets/ContactExtractor.java @@ -144,21 +144,6 @@ public class ContactExtractor extends GenericMailet implements Mailet { .map(MimeUtil::unscrambleHeaderValue); } - public static class ExtractedContacts { - private final String userEmail; - private final ImmutableList<String> emails; - - public ExtractedContacts(String userEmail, ImmutableList<String> emails) { - this.emails = emails; - this.userEmail = userEmail; - } - - public ImmutableList<String> getEmails() { - return emails; - } - - public String getUserEmail() { - return userEmail; - } + public record ExtractedContacts(String userEmail, ImmutableList<String> emails) { } } --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org