diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-03-22 11:42:09 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-03-22 11:42:09 +0100 |
commit | 5e2a90836d0c332b75af15b8f42403cf799ec355 (patch) | |
tree | e86dea771659848445db98bed7fd3889d6ae33b9 /src/core/lombok/javac/JavacAugments.java | |
parent | 3400f66fa70da6664e91d98cc63d8ea959979606 (diff) | |
download | lombok-5e2a90836d0c332b75af15b8f42403cf799ec355.tar.gz lombok-5e2a90836d0c332b75af15b8f42403cf799ec355.tar.bz2 lombok-5e2a90836d0c332b75af15b8f42403cf799ec355.zip |
[javac] defer removal of `import lombok.x;` nodes until delombok
Our test harness setup for JDK15 and up doesn't work with annotations on record 'fields' (`record X(@RightHere String foo)`).
Diffstat (limited to 'src/core/lombok/javac/JavacAugments.java')
-rw-r--r-- | src/core/lombok/javac/JavacAugments.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lombok/javac/JavacAugments.java b/src/core/lombok/javac/JavacAugments.java index bc23131b..e5d1fc43 100644 --- a/src/core/lombok/javac/JavacAugments.java +++ b/src/core/lombok/javac/JavacAugments.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014 The Project Lombok Authors. + * Copyright (C) 2014-2021 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 @@ -24,6 +24,7 @@ package lombok.javac; import lombok.core.FieldAugment; import com.sun.tools.javac.tree.JCTree; +import com.sun.tools.javac.tree.JCTree.JCImport; public final class JavacAugments { private JavacAugments() { @@ -32,4 +33,5 @@ public final class JavacAugments { public static final FieldAugment<JCTree, Boolean> JCTree_handled = FieldAugment.augment(JCTree.class, boolean.class, "lombok$handled"); public static final FieldAugment<JCTree, JCTree> JCTree_generatedNode = FieldAugment.circularSafeAugment(JCTree.class, JCTree.class, "lombok$generatedNode"); + public static final FieldAugment<JCImport, Boolean> JCImport_deletable = FieldAugment.circularSafeAugment(JCImport.class, Boolean.class, "lombok$deletable"); } |