From c7a1a81d66bc452b9df86d480777eab5dfd108af Mon Sep 17 00:00:00 2001 From: Liam Pace <146035497+liampace@users.noreply.github.com> Date: Thu, 25 Sep 2025 16:56:24 -0400 Subject: [PATCH 1/2] Create After.java --- src/core/lombok/experimental/After.java | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/core/lombok/experimental/After.java diff --git a/src/core/lombok/experimental/After.java b/src/core/lombok/experimental/After.java new file mode 100644 index 000000000..967c16b7d --- /dev/null +++ b/src/core/lombok/experimental/After.java @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2025 The Project Lombok Authors. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +package lombok.experimental; + +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.RetentionPolicy.SOURCE; + +import java.lang.annotation.Retention; +import java.lang.annotation.Target; + +@Target(METHOD) +@Retention(SOURCE) +public @interface After { + String name() default ""; + Class[] parameters() default {}; +} \ No newline at end of file From 13fb052e227461ab70d039d2b68a22fbd2949dbc Mon Sep 17 00:00:00 2001 From: Liam Pace <146035497+liampace@users.noreply.github.com> Date: Thu, 25 Sep 2025 17:00:04 -0400 Subject: [PATCH 2/2] Stub handlers --- .../lombok/eclipse/handlers/HandleAfter.java | 19 +++++++++++++++++++ .../lombok/javac/handlers/HandleAfter.java | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/core/lombok/eclipse/handlers/HandleAfter.java create mode 100644 src/core/lombok/javac/handlers/HandleAfter.java diff --git a/src/core/lombok/eclipse/handlers/HandleAfter.java b/src/core/lombok/eclipse/handlers/HandleAfter.java new file mode 100644 index 000000000..797060054 --- /dev/null +++ b/src/core/lombok/eclipse/handlers/HandleAfter.java @@ -0,0 +1,19 @@ +package lombok.eclipse.handlers; + +import org.eclipse.jdt.internal.compiler.ast.Annotation; + +import lombok.core.AnnotationValues; +import lombok.core.HandlerPriority; +import lombok.eclipse.EclipseAnnotationHandler; +import lombok.eclipse.EclipseNode; +import lombok.experimental.After; +import lombok.spi.Provides; + +@Provides +@HandlerPriority(Integer.MAX_VALUE) // If we want this annotation to work on Lombok generated methods, this handler must run last. +public class HandleAfter extends EclipseAnnotationHandler { + @Override + public void handle(AnnotationValues annotation, Annotation ast, EclipseNode annotationNode) { + // TODO Auto-generated method stub + } +} diff --git a/src/core/lombok/javac/handlers/HandleAfter.java b/src/core/lombok/javac/handlers/HandleAfter.java new file mode 100644 index 000000000..c2eb53ee3 --- /dev/null +++ b/src/core/lombok/javac/handlers/HandleAfter.java @@ -0,0 +1,19 @@ +package lombok.javac.handlers; + +import com.sun.tools.javac.tree.JCTree.JCAnnotation; + +import lombok.core.AnnotationValues; +import lombok.core.HandlerPriority; +import lombok.experimental.After; +import lombok.javac.JavacAnnotationHandler; +import lombok.javac.JavacNode; +import lombok.spi.Provides; + +@Provides +@HandlerPriority(Integer.MAX_VALUE) // If we want this annotation to work on Lombok generated methods, this handler must run last. +public class HandleAfter extends JavacAnnotationHandler { + @Override + public void handle(AnnotationValues annotation, JCAnnotation ast, JavacNode annotationNode) { + // TODO Auto-generated method stub + } +}