Pull helper methods out of src/main/java/com/sendgrid/smtpapi/SMTPAPI.java
Closed this issue · 2 comments
thinkingserious commented
There are quite a few helper methods in SMTPAPI
- pull them out and put them in another location where these helper methods can be reused.
Example:
private static String[] toArray(JSONArray json) {
ArrayList<String> parse = new ArrayList<String>();
for (int i = 0; i < json.length(); i++) {
parse.add(json.getString(i));
}
return parse.toArray(new String[parse.size()]);
}
huytranrjc commented
I created PR59
Please review
thinkingserious commented
Since there has been no activity on this issue since March 1, 2020, we are closing this issue. Please feel free to reopen or create a new issue if you still require assistance. Thank you!