From e8aeef471535f2ef3492aa2b09cb4671fc7daf36 Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Thu, 26 Sep 2024 22:37:12 +0200 Subject: [PATCH] Change nullability. --- byte-buddy-dep/src/main/java/net/bytebuddy/build/Plugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/byte-buddy-dep/src/main/java/net/bytebuddy/build/Plugin.java b/byte-buddy-dep/src/main/java/net/bytebuddy/build/Plugin.java index eda840224e..9deaadf5ce 100644 --- a/byte-buddy-dep/src/main/java/net/bytebuddy/build/Plugin.java +++ b/byte-buddy-dep/src/main/java/net/bytebuddy/build/Plugin.java @@ -31,6 +31,7 @@ import net.bytebuddy.utility.StreamDrainer; import net.bytebuddy.utility.nullability.AlwaysNull; import net.bytebuddy.utility.nullability.MaybeNull; +import net.bytebuddy.utility.nullability.NeverNull; import net.bytebuddy.utility.nullability.UnknownNull; import java.io.*; @@ -3347,7 +3348,7 @@ protected MultiReleaseVersionMatcher(ClassFileVersion classFileVersion) { /** * {@inheritDoc} */ - public boolean matches(@UnknownNull Element target) { + public boolean matches(@NeverNull Element target) { String name = target.getName(); if (name.startsWith("/")) { name = name.substring(1);