From cd7de5b7f0d2cebe777a0e3772706efebbcaa12a Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Mon, 25 Apr 2016 09:24:49 +0200 Subject: [PATCH] Added clarification to javadoc. --- .../java/net/bytebuddy/matcher/ElementMatchers.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/byte-buddy-dep/src/main/java/net/bytebuddy/matcher/ElementMatchers.java b/byte-buddy-dep/src/main/java/net/bytebuddy/matcher/ElementMatchers.java index 105f74682f3..e64f438d1d8 100644 --- a/byte-buddy-dep/src/main/java/net/bytebuddy/matcher/ElementMatchers.java +++ b/byte-buddy-dep/src/main/java/net/bytebuddy/matcher/ElementMatchers.java @@ -210,8 +210,14 @@ public static ElementMatcher.Junction none() { } /** + *

* Creates a matcher that matches any of the given objects by the {@link java.lang.Object#equals(Object)} method. * None of the values must be {@code null}. + *

+ *

+ * Important: This method cannot be used interchangably with any of its overloaded versions which also apply a type + * conversion. + *

* * @param value The input values to be compared against. * @param The type of the matched object. @@ -222,8 +228,14 @@ public static ElementMatcher.Junction anyOf(Object... value) { } /** + *

* Creates a matcher that matches any of the given objects by the {@link java.lang.Object#equals(Object)} method. * None of the values must be {@code null}. + *

+ *

+ * Important: This method cannot be used interchangably with any of the overloaded versions of {@link ElementMatchers#anyOf(Object...)} + * which also apply a type conversion. + *

* * @param values The input values to be compared against. * @param The type of the matched object.