Skip to content

Commit f8df315

Browse files
committed
✏️ Fix typo in MongoRequest.getPathTemplateParameters()
1 parent d29310a commit f8df315

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

commons/src/main/java/org/restheart/exchange/MongoRequest.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,13 +996,22 @@ public String getMongoResourceUri() {
996996
return mongoResourceUri;
997997
}
998998

999+
/**
1000+
* this method has a typo and will be removed
1001+
* use getPathTemplateParameters() instead
1002+
*/
1003+
@Deprecated(forRemoval = true)
1004+
public Map<String, String> getPathTemplateParamenters() {
1005+
return getPathTemplateParameters();
1006+
}
1007+
9991008
/**
10001009
* if mongo-mounts specifies a path template (i.e. /{foo}/*) this returns
10011010
* the request template parameters {@literal (/x/y => foo=x, *=y) }
10021011
*
10031012
* @return
10041013
*/
1005-
public Map<String, String> getPathTemplateParamenters() {
1014+
public Map<String, String> getPathTemplateParameters() {
10061015
if (this.pathTemplateMatch == null) {
10071016
return null;
10081017
} else {

0 commit comments

Comments
 (0)