From 3d7dd3d66ed30faeac4ee54b3f1ae2cc164f9371 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Wed, 7 Feb 2024 12:06:30 +0700 Subject: [PATCH] Add javadoc links to ClassFileTransformer::transform Relates to #277. Signed-off-by: Alexander Kriegisch --- .../java/org/aspectj/weaver/loadtime/ClassPreProcessor.java | 2 ++ .../src/main/java/org/aspectj/weaver/tools/WeavingAdaptor.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassPreProcessor.java b/loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassPreProcessor.java index 5d9b74f87..01b9538d1 100644 --- a/loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassPreProcessor.java +++ b/loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassPreProcessor.java @@ -34,6 +34,8 @@ public interface ClassPreProcessor { * @param protectionDomain the protection domain of the class being defined or redefined * * @return a well-formed class file buffer (weaving result), or {@code null} if no weaving was performed + * + * @see java.lang.instrument.ClassFileTransformer#transform(ClassLoader, String, Class, ProtectionDomain, byte[]) */ byte[] preProcess(String className, final byte[] bytes, ClassLoader classLoader, ProtectionDomain protectionDomain); diff --git a/weaver/src/main/java/org/aspectj/weaver/tools/WeavingAdaptor.java b/weaver/src/main/java/org/aspectj/weaver/tools/WeavingAdaptor.java index 41f19db55..2311e3dcf 100644 --- a/weaver/src/main/java/org/aspectj/weaver/tools/WeavingAdaptor.java +++ b/weaver/src/main/java/org/aspectj/weaver/tools/WeavingAdaptor.java @@ -326,6 +326,8 @@ public class WeavingAdaptor implements IMessageContext { * @return a well-formed class file buffer (the weaving result), or {@code null} if no weaving was performed * * @throws IOException weave failed + * + * @see java.lang.instrument.ClassFileTransformer#transform(ClassLoader, String, Class, ProtectionDomain, byte[]) */ public byte[] weaveClass(String name, final byte[] bytes, boolean mustWeave) throws IOException { if (trace == null) { -- 2.39.5