Skip to content

Commit 1b2a55e

Browse files
authored
chore: Remove unnecessary access modifiers on interface methods. (sendgrid#563)
1 parent 69ba0d2 commit 1b2a55e

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/main/java/com/sendgrid/APICallback.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ public interface APICallback {
99
* Callback method in case of an error.
1010
* @param ex the error that was thrown.
1111
*/
12-
public void error(Exception ex);
12+
void error(Exception ex);
1313

1414
/**
1515
* Callback method in case of a valid response.
1616
* @param response the valid response.
1717
*/
18-
public void response(Response response);
18+
void response(Response response);
1919
}

src/main/java/com/sendgrid/SendGridAPI.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,34 @@ public interface SendGridAPI {
1010
*
1111
* @param apiKey is your Twilio SendGrid API Key: https://app.sendgrid.com/settings/api_keys
1212
*/
13-
public void initializeSendGrid(String apiKey);
13+
void initializeSendGrid(String apiKey);
1414

1515
/**
1616
* Returns the library version
1717
*
1818
* @return the library version.
1919
*/
20-
public String getLibraryVersion();
20+
String getLibraryVersion();
2121

2222
/**
2323
* Gets the version.
2424
*
2525
* @return returns the version.
2626
*/
27-
public String getVersion();
27+
String getVersion();
2828

2929
/**
3030
* Sets the version.
3131
*
3232
* @param version the Twilio SendGrid version.
3333
*/
34-
public void setVersion(String version);
34+
void setVersion(String version);
3535

3636
/**
3737
* Gets the request headers.
3838
* @return returns a map of request headers.
3939
*/
40-
public Map<String, String> getRequestHeaders();
40+
Map<String, String> getRequestHeaders();
4141

4242
/**
4343
* Adds a request headers.
@@ -46,29 +46,29 @@ public interface SendGridAPI {
4646
* @param value the value
4747
* @return returns a map of request headers.
4848
*/
49-
public Map<String, String> addRequestHeader(String key, String value);
49+
Map<String, String> addRequestHeader(String key, String value);
5050

5151
/**
5252
* Removes a request headers.
5353
*
5454
* @param key the key
5555
* @return returns a map of request headers.
5656
*/
57-
public Map<String, String> removeRequestHeader(String key);
57+
Map<String, String> removeRequestHeader(String key);
5858

5959
/**
6060
* Gets the host.
6161
*
6262
* @return returns the host.
6363
*/
64-
public String getHost();
64+
String getHost();
6565

6666
/**
6767
* Sets the host.
6868
*
6969
* @param host the host to set
7070
*/
71-
public void setHost(String host);
71+
void setHost(String host);
7272

7373
/**
7474
* Class makeCall makes the call to the Twilio SendGrid API, override this method for
@@ -78,7 +78,7 @@ public interface SendGridAPI {
7878
* @return returns a response.
7979
* @throws IOException in case of network or marshal error.
8080
*/
81-
public Response makeCall(Request request) throws IOException;
81+
Response makeCall(Request request) throws IOException;
8282

8383
/**
8484
* Class api sets up the request to the Twilio SendGrid API, this is main interface.
@@ -87,5 +87,5 @@ public interface SendGridAPI {
8787
* @return returns a response.
8888
* @throws IOException in case of network or marshal error.
8989
*/
90-
public Response api(Request request) throws IOException;
90+
Response api(Request request) throws IOException;
9191
}

0 commit comments

Comments
 (0)