Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentMatches: fix Javadoc typo/grammar #2175

Merged
merged 1 commit into from
Jan 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
40 changes: 20 additions & 20 deletions src/main/java/org/mockito/ArgumentMatchers.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public static <T> T anyObject() {
* <p>
* Since Mockito 2.1.0, only allow non-null instance of <code></code>, thus <code>null</code> is not anymore a valid value.
* As reference are nullable, the suggested API to <strong>match</strong> <code>null</code>
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand Down Expand Up @@ -268,7 +268,7 @@ public static <T> T anyVararg() {
* <p>
* Since Mockito 2.1.0, only allow valued <code>Boolean</code>, thus <code>null</code> is not anymore a valid value.
* As primitive wrappers are nullable, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand All @@ -291,7 +291,7 @@ public static boolean anyBoolean() {
* <p>
* Since Mockito 2.1.0, only allow valued <code>Byte</code>, thus <code>null</code> is not anymore a valid value.
* As primitive wrappers are nullable, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand All @@ -314,7 +314,7 @@ public static byte anyByte() {
* <p>
* Since Mockito 2.1.0, only allow valued <code>Character</code>, thus <code>null</code> is not anymore a valid value.
* As primitive wrappers are nullable, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand All @@ -337,7 +337,7 @@ public static char anyChar() {
* <p>
* Since Mockito 2.1.0, only allow valued <code>Integer</code>, thus <code>null</code> is not anymore a valid value.
* As primitive wrappers are nullable, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand All @@ -360,7 +360,7 @@ public static int anyInt() {
* <p>
* Since Mockito 2.1.0, only allow valued <code>Long</code>, thus <code>null</code> is not anymore a valid value.
* As primitive wrappers are nullable, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand All @@ -383,7 +383,7 @@ public static long anyLong() {
* <p>
* Since Mockito 2.1.0, only allow valued <code>Float</code>, thus <code>null</code> is not anymore a valid value.
* As primitive wrappers are nullable, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand All @@ -406,7 +406,7 @@ public static float anyFloat() {
* <p>
* Since Mockito 2.1.0, only allow valued <code>Double</code>, thus <code>null</code> is not anymore a valid value.
* As primitive wrappers are nullable, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand All @@ -429,7 +429,7 @@ public static double anyDouble() {
* <p>
* Since Mockito 2.1.0, only allow valued <code>Short</code>, thus <code>null</code> is not anymore a valid value.
* As primitive wrappers are nullable, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand All @@ -452,7 +452,7 @@ public static short anyShort() {
* <p>
* Since Mockito 2.1.0, only allow non-null <code>String</code>.
* As this is a nullable reference, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand All @@ -475,7 +475,7 @@ public static String anyString() {
* <p>
* Since Mockito 2.1.0, only allow non-null <code>List</code>.
* As this is a nullable reference, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand Down Expand Up @@ -507,7 +507,7 @@ public static <T> List<T> anyList() {
* <p>
* Since Mockito 2.1.0, only allow non-null <code>List</code>.
* As this is a nullable reference, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand All @@ -534,7 +534,7 @@ public static <T> List<T> anyListOf(Class<T> clazz) {
* <p>
* Since Mockito 2.1.0, only allow non-null <code>Set</code>.
* As this is a nullable reference, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand Down Expand Up @@ -568,7 +568,7 @@ public static <T> Set<T> anySet() {
* <p>
* Since Mockito 2.1.0, only allow non-null <code>Set</code>.
* As this is a nullable reference, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand All @@ -595,7 +595,7 @@ public static <T> Set<T> anySetOf(Class<T> clazz) {
* <p>
* Since Mockito 2.1.0, only allow non-null <code>Map</code>.
* As this is a nullable reference, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand Down Expand Up @@ -629,7 +629,7 @@ public static <K, V> Map<K, V> anyMap() {
* <p>
* Since Mockito 2.1.0, only allow non-null <code>Map</code>.
* As this is a nullable reference, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand Down Expand Up @@ -657,7 +657,7 @@ public static <K, V> Map<K, V> anyMapOf(Class<K> keyClazz, Class<V> valueClazz)
* <p>
* Since Mockito 2.1.0, only allow non-null <code>Collection</code>.
* As this is a nullable reference, the suggested API to <strong>match</strong> <code>null</code>
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand Down Expand Up @@ -691,7 +691,7 @@ public static <T> Collection<T> anyCollection() {
* <p>
* Since Mockito 2.1.0, only allow non-null <code>Collection</code>.
* As this is a nullable reference, the suggested API to <strong>match</strong> <code>null</code>
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand All @@ -718,7 +718,7 @@ public static <T> Collection<T> anyCollectionOf(Class<T> clazz) {
* <p>
* Since Mockito 2.1.0, only allow non-null <code>Iterable</code>.
* As this is a nullable reference, the suggested API to <strong>match</strong> <code>null</code>
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand Down Expand Up @@ -753,7 +753,7 @@ public static <T> Iterable<T> anyIterable() {
* <p>
* Since Mockito 2.1.0, only allow non-null <code>String</code>.
* As strings are nullable reference, the suggested API to <strong>match</strong> <code>null</code> wrapper
* would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
* would be {@link #isNull()}. We felt this change would make test harnesses much safer than they were with Mockito
* 1.x.
* </p>
*
Expand Down