Skip to content

Commit

Permalink
Fix grammar in ArgumentMatchers JavaDoc (#2175)
Browse files Browse the repository at this point in the history
  • Loading branch information
perlun committed Jan 15, 2021
1 parent ae001c9 commit 09bfe5b
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/main/java/org/mockito/ArgumentMatchers.java
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

0 comments on commit 09bfe5b

Please sign in to comment.