From a47a19a4e51db7de387d2c2a4a1b82204a82ec69 Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Sat, 3 Feb 2024 23:21:53 +0100 Subject: [PATCH] Add missing annotations. --- .../agent/builder/ResettableClassFileTransformer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/byte-buddy-dep/src/main/java/net/bytebuddy/agent/builder/ResettableClassFileTransformer.java b/byte-buddy-dep/src/main/java/net/bytebuddy/agent/builder/ResettableClassFileTransformer.java index 5401852953..a717533754 100644 --- a/byte-buddy-dep/src/main/java/net/bytebuddy/agent/builder/ResettableClassFileTransformer.java +++ b/byte-buddy-dep/src/main/java/net/bytebuddy/agent/builder/ResettableClassFileTransformer.java @@ -51,14 +51,14 @@ public interface ResettableClassFileTransformer extends ClassFileTransformer { * @param classLoader The type's class loader or {@code null} if the boot loader. * @param module The type's module or {@code null} if the module system is not supported by the current VM. * @param classBeingRedefined The class being redefined or {@code null} if the type is not yet loaded. - * @param protectionDomain The type's protection domain. + * @param protectionDomain The type's protection domain or {@code null} if not available. * @return An iterator over the transformers that are applied by this class file transformer if the given type is discovered. */ Iterator iterator(TypeDescription typeDescription, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull Class classBeingRedefined, - ProtectionDomain protectionDomain); + @MaybeNull ProtectionDomain protectionDomain); /** *

@@ -432,7 +432,7 @@ public Iterator iterator(TypeDescription typeDescripti @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull Class classBeingRedefined, - ProtectionDomain protectionDomain) { + @MaybeNull ProtectionDomain protectionDomain) { return classFileTransformer.iterator(typeDescription, classLoader, module, classBeingRedefined, protectionDomain); } @@ -524,7 +524,7 @@ public Iterator iterator(TypeDescription typeDescripti @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull Class classBeingRedefined, - ProtectionDomain protectionDomain) { + @MaybeNull ProtectionDomain protectionDomain) { return classFileTransformer.iterator(typeDescription, classLoader, module, classBeingRedefined, protectionDomain); }