From ea71c9d33a8d69fd0c672080f239ae25b6c5198c Mon Sep 17 00:00:00 2001 From: Clayton Chu Date: Tue, 16 Jan 2018 16:19:23 -0800 Subject: [PATCH 1/3] Update Attachments.java --- .../java/com/sendgrid/helpers/mail/objects/Attachments.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java b/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java index fae247be..32209806 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java @@ -201,6 +201,7 @@ private String encodeToBase64(InputStream content) { /** * Set the type of this attachment builder. * @param type the attachment type. + * @return attachment builder object. */ public Builder withType(String type) { this.type = type; @@ -210,6 +211,7 @@ public Builder withType(String type) { /** * Set the disposition of this attachment builder. * @param disposition the disposition. + * @return attachment builder object. */ public Builder withDisposition(String disposition) { this.disposition = disposition; From 94e8dd500bad1438ccc5d42ecf81e8c1461a17c4 Mon Sep 17 00:00:00 2001 From: Clayton Chu Date: Tue, 16 Jan 2018 16:23:09 -0800 Subject: [PATCH 2/3] Update Attachments.java --- .../java/com/sendgrid/helpers/mail/objects/Attachments.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java b/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java index 32209806..805a7bc2 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java @@ -221,6 +221,7 @@ public Builder withDisposition(String disposition) { /** * Set the content ID of this attachment builder. * @param contentId the content ID. + * @return attachment builder object. */ public Builder withContentId(String contentId) { this.contentId = contentId; @@ -229,6 +230,7 @@ public Builder withContentId(String contentId) { /** * Construct the attachments object. + * @return the attachments object constructed. */ public Attachments build() { Attachments attachments = new Attachments(); From 59773dd95af4199dbe9e1fbaf8f62922f1731539 Mon Sep 17 00:00:00 2001 From: Clayton Chu Date: Tue, 16 Jan 2018 16:24:15 -0800 Subject: [PATCH 3/3] Update SendGridAPI.java --- src/main/java/com/sendgrid/SendGridAPI.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/sendgrid/SendGridAPI.java b/src/main/java/com/sendgrid/SendGridAPI.java index 32998459..34599a7d 100644 --- a/src/main/java/com/sendgrid/SendGridAPI.java +++ b/src/main/java/com/sendgrid/SendGridAPI.java @@ -15,7 +15,6 @@ public interface SendGridAPI { /** * Returns the library version * - * @param apiKey is your SendGrid API Key: https://app.sendgrid.com/settings/api_keys * @return the library version. */ public String getLibraryVersion();