Skip to content

Commit 3677d0c

Browse files
authored
removed unnecessary usage of public on interface methods (#172)
1 parent e865e54 commit 3677d0c

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

aws-lambda-java-core/src/main/java/com/amazonaws/services/lambda/runtime/Client.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ public interface Client {
1111
/**
1212
* Gets the application's installation id
1313
*/
14-
public String getInstallationId();
14+
String getInstallationId();
1515

1616
/**
1717
* Gets the application's title
1818
*
1919
*/
20-
public String getAppTitle();
20+
String getAppTitle();
2121

2222
/**
2323
* Gets the application's version
2424
*
2525
*/
26-
public String getAppVersionName();
26+
String getAppVersionName();
2727

2828
/**
2929
* Gets the application's version code
3030
*
3131
*/
32-
public String getAppVersionCode();
32+
String getAppVersionCode();
3333

3434
/**
3535
* Gets the application's package name
3636
*/
37-
public String getAppPackageName();
37+
String getAppPackageName();
3838
}

aws-lambda-java-core/src/main/java/com/amazonaws/services/lambda/runtime/ClientContext.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ public interface ClientContext {
1414
* Gets the client information provided by the AWS Mobile SDK
1515
*
1616
*/
17-
public Client getClient();
17+
Client getClient();
1818

1919
/**
2020
* Gets custom values set by the client application
2121
* <p>
2222
* This map is mutable (and not thread-safe if mutated)
2323
* </p>
2424
*/
25-
public Map<String, String> getCustom();
25+
Map<String, String> getCustom();
2626

2727
/**
2828
* Gets environment information provided by mobile SDK, immutable.
2929
*
3030
*/
31-
public Map<String, String> getEnvironment();
31+
Map<String, String> getEnvironment();
3232

3333
}

aws-lambda-java-core/src/main/java/com/amazonaws/services/lambda/runtime/CognitoIdentity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ public interface CognitoIdentity {
1111
* Gets the Amazon Cognito identity ID
1212
*
1313
*/
14-
public String getIdentityId();
14+
String getIdentityId();
1515

1616
/**
1717
* Gets the Amazon Cognito identity pool ID
1818
*
1919
*/
20-
public String getIdentityPoolId();
20+
String getIdentityPoolId();
2121
}

aws-lambda-java-core/src/main/java/com/amazonaws/services/lambda/runtime/LambdaLogger.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ public interface LambdaLogger {
2525
*
2626
* @param message A string containing the event to log.
2727
*/
28-
public void log(String message);
28+
void log(String message);
2929

3030
/**
3131
* Logs a byte array to AWS CloudWatch Logs
3232
* @param message byte array containing logs
3333
*/
34-
public void log(byte[] message);
34+
void log(byte[] message);
3535
}
3636

aws-lambda-java-core/src/main/java/com/amazonaws/services/lambda/runtime/RequestHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ public interface RequestHandler<I, O> {
1717
* @param context The Lambda execution environment context object.
1818
* @return The Lambda Function output
1919
*/
20-
public O handleRequest(I input, Context context);
20+
O handleRequest(I input, Context context);
2121
}

aws-lambda-java-core/src/main/java/com/amazonaws/services/lambda/runtime/RequestStreamHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ public interface RequestStreamHandler {
1818
* @param context The Lambda execution environment context object.
1919
* @throws IOException
2020
*/
21-
public void handleRequest(InputStream input, OutputStream output, Context context) throws IOException;
21+
void handleRequest(InputStream input, OutputStream output, Context context) throws IOException;
2222
}

0 commit comments

Comments
 (0)