From d5013001c5289be1a15125fc51d61493c9d1603f Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Fri, 7 Jan 2022 10:52:19 +0000 Subject: [PATCH] Remove `@link` to ProxyMockMaker from main Mockito javadoc (#2535) We shouldn't be directly linking to specific extensions. For users that want to use Mockito with a specific extension, we only want to load the appropriate one and avoid loading any others. Follow-up to 80e1cc91d66e7cf6e188b2dee26deba81f4b885f --- src/main/java/org/mockito/Mockito.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/mockito/Mockito.java b/src/main/java/org/mockito/Mockito.java index 4e23676edd..a0502a6eec 100644 --- a/src/main/java/org/mockito/Mockito.java +++ b/src/main/java/org/mockito/Mockito.java @@ -7,7 +7,6 @@ import org.mockito.exceptions.misusing.PotentialStubbingProblem; import org.mockito.exceptions.misusing.UnnecessaryStubbingException; import org.mockito.internal.MockitoCore; -import org.mockito.internal.creation.proxy.ProxyMockMaker; import org.mockito.internal.creation.MockSettingsImpl; import org.mockito.internal.framework.DefaultMockitoFramework; import org.mockito.internal.session.DefaultMockitoSessionBuilder; @@ -1591,7 +1590,7 @@ * The JVM offers the {@link java.lang.reflect.Proxy} facility for creating dynamic proxies of interface types. For most applications, Mockito * must be capable of mocking classes as supported by the default mock maker, or even final classes, as supported by the inline mock maker. To * create such mocks, Mockito requires to setup diverse JVM facilities and must apply code generation. If only interfaces are supposed to be - * mocked, one can however choose to use a {@link ProxyMockMaker} that is based on the {@link java.lang.reflect.Proxy} + * mocked, one can however choose to use a org.mockito.internal.creation.proxy.ProxyMockMaker that is based on the {@link java.lang.reflect.Proxy} * API which avoids diverse overhead of the other mock makers but also limits mocking to interfaces. * * This mock maker can be activated explicitly by the mockito extension mechanism, just create in the classpath a file