From a1ab031c8ec2971caf2b60bfe88f0d7f49a70cd7 Mon Sep 17 00:00:00 2001 From: phoenix384 Date: Wed, 24 Apr 2019 20:39:35 +0200 Subject: [PATCH] Use "" for all arguments of anyOf fixes #256 --- hamcrest/src/main/java/org/hamcrest/Matchers.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hamcrest/src/main/java/org/hamcrest/Matchers.java b/hamcrest/src/main/java/org/hamcrest/Matchers.java index e10bec25..30064b12 100644 --- a/hamcrest/src/main/java/org/hamcrest/Matchers.java +++ b/hamcrest/src/main/java/org/hamcrest/Matchers.java @@ -98,7 +98,7 @@ public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.MatcherassertThat("myValue", anyOf(startsWith("foo"), containsString("Val"))) */ - public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first, org.hamcrest.Matcher second) { + public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first, org.hamcrest.Matcher second) { return org.hamcrest.core.AnyOf.anyOf(first, second); } @@ -107,7 +107,7 @@ public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first * For example: *
assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
*/ - public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first, org.hamcrest.Matcher second, org.hamcrest.Matcher third) { + public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first, org.hamcrest.Matcher second, org.hamcrest.Matcher third) { return org.hamcrest.core.AnyOf.anyOf(first, second, third); } @@ -116,7 +116,7 @@ public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first * For example: *
assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
*/ - public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first, org.hamcrest.Matcher second, org.hamcrest.Matcher third, org.hamcrest.Matcher fourth) { + public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first, org.hamcrest.Matcher second, org.hamcrest.Matcher third, org.hamcrest.Matcher fourth) { return org.hamcrest.core.AnyOf.anyOf(first, second, third, fourth); } @@ -125,7 +125,7 @@ public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first * For example: *
assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
*/ - public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first, org.hamcrest.Matcher second, org.hamcrest.Matcher third, org.hamcrest.Matcher fourth, org.hamcrest.Matcher fifth) { + public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first, org.hamcrest.Matcher second, org.hamcrest.Matcher third, org.hamcrest.Matcher fourth, org.hamcrest.Matcher fifth) { return org.hamcrest.core.AnyOf.anyOf(first, second, third, fourth, fifth); } @@ -134,7 +134,7 @@ public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first * For example: *
assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
*/ - public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first, org.hamcrest.Matcher second, org.hamcrest.Matcher third, org.hamcrest.Matcher fourth, org.hamcrest.Matcher fifth, org.hamcrest.Matcher sixth) { + public static org.hamcrest.core.AnyOf anyOf(org.hamcrest.Matcher first, org.hamcrest.Matcher second, org.hamcrest.Matcher third, org.hamcrest.Matcher fourth, org.hamcrest.Matcher fifth, org.hamcrest.Matcher sixth) { return org.hamcrest.core.AnyOf.anyOf(first, second, third, fourth, fifth, sixth); }