Skip to content

Commit

Permalink
Remove @link to ProxyMockMaker from main Mockito javadoc (#2535)
Browse files Browse the repository at this point in the history
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 80e1cc9
  • Loading branch information
cushon committed Jan 7, 2022
1 parent 3dca21f commit d501300
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/mockito/Mockito.java
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d501300

Please sign in to comment.