Skip to content

Instantly share code, notes, and snippets.

@aasokan
Created February 2, 2015 23:14
Show Gist options
  • Save aasokan/1716495a71a3cc9f8c59 to your computer and use it in GitHub Desktop.
Save aasokan/1716495a71a3cc9f8c59 to your computer and use it in GitHub Desktop.
Resetting Builders to avoid corruption
public Deliverer buildDeliverer() {
try {
return new Deliverer(letter, mailServerUrl, port);
} finally {
letter = null;
mailServerUrl = null;
port = -1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment