Skip to content

Commit

Permalink
Speedup mappers's lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
franz1981 committed Feb 6, 2024
1 parent 9d8614d commit c50d0c7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public void validateNotAllowedMethods(String remaining, String ignoreHttpMethod,
}

private static String validateHttpMethod(String httpMethod, RequestMapper<RuntimeResource> mapper,
String remaining, String ignoreHttpMethod) {
String remaining, String ignoreHttpMethod) {
if (ignoreHttpMethod != null && ignoreHttpMethod.equals(httpMethod)) {
return null;
}
Expand All @@ -378,7 +378,8 @@ private static void throwNotAllowedEx() {

private void validateOtherMappings(String remaining, String ignoreHttpMethod) {
for (var mapperEntry : othersMapper.entrySet()) {
ignoreHttpMethod = validateHttpMethod(mapperEntry.getKey(), mapperEntry.getValue(), remaining, ignoreHttpMethod);
ignoreHttpMethod = validateHttpMethod(mapperEntry.getKey(), mapperEntry.getValue(), remaining,
ignoreHttpMethod);
}
}

Expand All @@ -394,6 +395,5 @@ public RequestMapper<RuntimeResource> getMapper() {
return getMapper;
}


}
}

0 comments on commit c50d0c7

Please sign in to comment.