Skip to content

Commit cda4677

Browse files
author
elbuo8
committed
Resolved warnings
1 parent 252baf0 commit cda4677

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/main/java/com/sendgrid/SendGrid.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,16 @@ public static class Email {
151151
private String text;
152152
private String html;
153153
private ArrayList<String> bcc;
154-
private Map attachments;
155-
private Map headers;
154+
private Map<String, InputStream> attachments;
155+
private Map<String, String> headers;
156156

157157
public Email () {
158158
this.smtpapi = new SMTPAPI();
159159
this.to = new ArrayList<String>();
160160
this.toname = new ArrayList<String>();
161161
this.bcc = new ArrayList<String>();
162-
this.attachments = new HashMap();
163-
this.headers = new HashMap();
162+
this.attachments = new HashMap<String, InputStream>();
163+
this.headers = new HashMap<String, String>();
164164
}
165165

166166
public Email addTo(String to) {
@@ -177,7 +177,7 @@ public Email addTo(String[] tos) {
177177

178178
public Email setTo(String[] tos) {
179179
this.smtpapi.setTos(tos);
180-
this.to = new ArrayList(Arrays.asList(tos));
180+
this.to = new ArrayList<String>(Arrays.asList(tos));
181181
return this;
182182
}
183183

@@ -196,7 +196,7 @@ public Email addToName(String[] tonames) {
196196
}
197197

198198
public Email setToName(String[] tonames) {
199-
this.toname = new ArrayList(Arrays.asList(tonames));
199+
this.toname = new ArrayList<String>(Arrays.asList(tonames));
200200
return this;
201201
}
202202

@@ -242,7 +242,7 @@ public Email addBcc(String[] bccs) {
242242
}
243243

244244
public Email setBcc(String[] bccs) {
245-
this.bcc = new ArrayList(Arrays.asList(bccs));
245+
this.bcc = new ArrayList<String>(Arrays.asList(bccs));
246246
return this;
247247
}
248248

0 commit comments

Comments
 (0)