-
-
Save margareteldridge/f9cfc5f5b04efdba3dd8136f3748999d to your computer and use it in GitHub Desktop.
This file contains 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 characters
public ReportMailer(MailDestination[] destinations) { | |
this.destinations = destinations; | |
if (destinations.length == 0) | |
throw new RuntimeException("dests required"); | |
for (int i = 0; i < destinations.length; i++) | |
if (MailDestination.getEndpoint(destinations[i]) == null) | |
throw new RuntimeException("invalid endpoint"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment