Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove unnecessary access modifiers on interface methods. #563

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/com/sendgrid/APICallback.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
22 changes: 11 additions & 11 deletions src/main/java/com/sendgrid/SendGridAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,34 @@ public interface SendGridAPI {
*
* @param apiKey is your Twilio 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 Twilio SendGrid version.
*/
public void setVersion(String version);
void setVersion(String version);

/**
* Gets the request headers.
* @return returns a map of request headers.
*/
public Map<String, String> getRequestHeaders();
Map<String, String> getRequestHeaders();

/**
* Adds a request headers.
Expand All @@ -46,29 +46,29 @@ public interface SendGridAPI {
* @param value the value
* @return returns a map of request headers.
*/
public Map<String, String> addRequestHeader(String key, String value);
Map<String, String> addRequestHeader(String key, String value);

/**
* Removes a request headers.
*
* @param key the key
* @return returns a map of request headers.
*/
public Map<String, String> removeRequestHeader(String key);
Map<String, String> 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 Twilio SendGrid API, override this method for
Expand All @@ -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 Twilio SendGrid API, this is main interface.
Expand All @@ -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;
}