Skip to content

Commit 7bf5fc9

Browse files
stepioTheo
authored and
Theo
committed
GH-65 Fix "Paramters" typo
- keep the old methods for backward compatibility (marked as @deprecated) - ignore folder with maven build results and IDEA-specific metadata
1 parent 9d36c53 commit 7bf5fc9

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@
1010

1111
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
1212
hs_err_pid*
13+
14+
# Maven build
15+
target/
16+
17+
# IDEA internal
18+
*.iml
19+
.idea

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyRequestEvent.java

+19-3
Original file line numberDiff line numberDiff line change
@@ -960,11 +960,19 @@ public void setQueryStringParameters(Map<String, String> queryStringParameters)
960960
* @param queryStringParameters The query string parameters that were part of the request
961961
* @return APIGatewayProxyRequestEvent
962962
*/
963-
public APIGatewayProxyRequestEvent withQueryStringParamters(Map<String, String> queryStringParameters) {
963+
public APIGatewayProxyRequestEvent withQueryStringParameters(Map<String, String> queryStringParameters) {
964964
this.setQueryStringParameters(queryStringParameters);
965965
return this;
966966
}
967967

968+
/**
969+
* @deprecated Because of typo in method's name, use {@link #withQueryStringParameters} instead.
970+
*/
971+
@Deprecated
972+
public APIGatewayProxyRequestEvent withQueryStringParamters(Map<String, String> queryStringParameters) {
973+
return withQueryStringParameters(queryStringParameters);
974+
}
975+
968976
/**
969977
* @return The multi value query string parameters that were part of the request
970978
*/
@@ -1003,14 +1011,22 @@ public void setPathParameters(Map<String, String> pathParameters) {
10031011
}
10041012

10051013
/**
1006-
* @param pathParameters The path paramters that were part of the request
1014+
* @param pathParameters The path parameters that were part of the request
10071015
* @return APIGatewayProxyRequestEvent object
10081016
*/
1009-
public APIGatewayProxyRequestEvent withPathParamters(Map<String, String> pathParameters) {
1017+
public APIGatewayProxyRequestEvent withPathParameters(Map<String, String> pathParameters) {
10101018
this.setPathParameters(pathParameters);
10111019
return this;
10121020
}
10131021

1022+
/**
1023+
* @deprecated Because of typo in method's name, use {@link #withPathParameters} instead.
1024+
*/
1025+
@Deprecated
1026+
public APIGatewayProxyRequestEvent withPathParamters(Map<String, String> pathParameters) {
1027+
return withPathParameters(pathParameters);
1028+
}
1029+
10141030
/**
10151031
* @return The stage variables defined for the stage in API Gateway
10161032
*/

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ConfigEvent.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public void setRuleParameters(String ruleParameters) {
114114
}
115115

116116
/**
117-
* @param ruleParameters String with rule paramters
117+
* @param ruleParameters String with rule parameters
118118
* @return ConfigEvent
119119
*/
120120
public ConfigEvent withRuleParameters(String ruleParameters) {

0 commit comments

Comments
 (0)