sendgrid/smtpapi-java

Pull helper methods out of src/main/java/com/sendgrid/smtpapi/SMTPAPI.java

Closed this issue · 2 comments

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()]);
  }

https://codeclimate.com/github/sendgrid/smtpapi-java/src/main/java/com/sendgrid/smtpapi/SMTPAPI.java#issue_59f5623652fc6c000100001c

I created PR59
Please review

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!