Skip to content

Commit 5d2dd77

Browse files
dividedmindCopilot
andauthored
Refine comment on Mockito mock-detection API
Update comment to clarify Mockito's mock-detection behavior. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 6bcd7dd commit 5d2dd77

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎agent/src/main/java/com/appland/appmap/util/MockDetector.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public class MockDetector {
6060

6161
/**
6262
* Mockito's mock-detection API, or null if it can't be reached for a given
63-
* class. Cached per class, so applications with no mocking framework on the
64-
* class path pay one {@link ClassValue} read and nothing else.
63+
* class. Cached per class: for each distinct recorded type, Mockito resolution
64+
* is attempted once and the result (including "unavailable") is reused.
6565
*/
6666
private static final ClassValue<Method[]> MOCKITO = new ClassValue<Method[]>() {
6767
@Override

0 commit comments

Comments
 (0)