Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
j-baker committed Aug 13, 2022
1 parent 7b31b37 commit a5d4aea
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -53,6 +53,7 @@ private static boolean isCompatible(ArgumentMatcher<?> argumentMatcher, Object a
private static Class<?> getArgumentType(ArgumentMatcher<?> matcher) {
Class<?> argumentMatcherType = matcher.getClass();
Class<?> cached = argumentTypeCache.get(argumentMatcherType);
// This avoids a lambda allocation on the 2nd and subsequent invocations for marginally worse perf on the first.
if (cached != null) {
return cached;
} else {
Expand Down

0 comments on commit a5d4aea

Please sign in to comment.