Improve comment (#10801)

This commit is contained in:
Lauri Tulmin 2024-03-12 01:20:24 +02:00 committed by GitHub
parent dfb1dd19e6
commit 68c92b06d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ public class PathMatcherStaticInstrumentation implements TypeInstrumentation {
AkkaRouteHolder.endMatched();
return;
}
// for remember the matched path in PathMatcherInstrumentation, otherwise we just use a *
// if present use the matched path that was remembered in PathMatcherInstrumentation,
// otherwise just use a *
String prefix = VirtualField.find(PathMatcher.class, String.class).get(pathMatcher);
if (prefix == null) {
if (PathMatchers.Slash$.class == pathMatcher.getClass()) {