Created
February 2, 2015 23:14
-
-
Save aasokan/1716495a71a3cc9f8c59 to your computer and use it in GitHub Desktop.
Resetting Builders to avoid corruption
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 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