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.