From 5a154b967b90d3646f89efb18c053f305582f687 Mon Sep 17 00:00:00 2001 From: Ethan Date: Wed, 10 Apr 2019 10:27:50 -0600 Subject: [PATCH 1/2] Removing unnecessary access modifiers on interface methods. --- src/main/java/com/sendgrid/APICallback.java | 4 ++-- src/main/java/com/sendgrid/SendGridAPI.java | 22 ++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/sendgrid/APICallback.java b/src/main/java/com/sendgrid/APICallback.java index fde54f9d..8504f41c 100644 --- a/src/main/java/com/sendgrid/APICallback.java +++ b/src/main/java/com/sendgrid/APICallback.java @@ -9,11 +9,11 @@ public interface APICallback { * Callback method in case of an error. * @param ex the error that was thrown. */ - public void error(Exception ex); + void error(Exception ex); /** * Callback method in case of a valid response. * @param response the valid response. */ - public void response(Response response); + void response(Response response); } diff --git a/src/main/java/com/sendgrid/SendGridAPI.java b/src/main/java/com/sendgrid/SendGridAPI.java index 34599a7d..a6556a44 100644 --- a/src/main/java/com/sendgrid/SendGridAPI.java +++ b/src/main/java/com/sendgrid/SendGridAPI.java @@ -10,34 +10,34 @@ public interface SendGridAPI { * * @param apiKey is your SendGrid API Key: https://app.sendgrid.com/settings/api_keys */ - public void initializeSendGrid(String apiKey); + void initializeSendGrid(String apiKey); /** * Returns the library version * * @return the library version. */ - public String getLibraryVersion(); + String getLibraryVersion(); /** * Gets the version. * * @return returns the version. */ - public String getVersion(); + String getVersion(); /** * Sets the version. * * @param version the SendGrid version. */ - public void setVersion(String version); + void setVersion(String version); /** * Gets the request headers. * @return returns a map of request headers. */ - public Map getRequestHeaders(); + Map getRequestHeaders(); /** * Adds a request headers. @@ -46,7 +46,7 @@ public interface SendGridAPI { * @param value the value * @return returns a map of request headers. */ - public Map addRequestHeader(String key, String value); + Map addRequestHeader(String key, String value); /** * Removes a request headers. @@ -54,21 +54,21 @@ public interface SendGridAPI { * @param key the key * @return returns a map of request headers. */ - public Map removeRequestHeader(String key); + Map removeRequestHeader(String key); /** * Gets the host. * * @return returns the host. */ - public String getHost(); + String getHost(); /** * Sets the host. * * @param host the host to set */ - public void setHost(String host); + void setHost(String host); /** * Class makeCall makes the call to the SendGrid API, override this method for @@ -78,7 +78,7 @@ public interface SendGridAPI { * @return returns a response. * @throws IOException in case of network or marshal error. */ - public Response makeCall(Request request) throws IOException; + Response makeCall(Request request) throws IOException; /** * Class api sets up the request to the SendGrid API, this is main interface. @@ -87,5 +87,5 @@ public interface SendGridAPI { * @return returns a response. * @throws IOException in case of network or marshal error. */ - public Response api(Request request) throws IOException; + Response api(Request request) throws IOException; } From 526636d0b70cbbc9434c931d04c0ea8dea991cee Mon Sep 17 00:00:00 2001 From: Ethan Wood Date: Wed, 10 Apr 2019 13:47:11 -0600 Subject: [PATCH 2/2] Fixing license year issue. --- LICENSE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE.md b/LICENSE.md index 7756fd61..528afb4d 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2013-2018 SendGrid, Inc. +Copyright (c) 2013-2019 SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal