diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2021-03-21 04:59:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-21 04:59:49 +0100 |
commit | 5ef5c77198acd9fc8d265f0e2fa0b0c199330868 (patch) | |
tree | 874832d8663282960660b6fa26c76031ca6d6145 /src | |
parent | c6076730de3b7b587ca0e1d6e31f5e7bd6ab6761 (diff) | |
parent | 8f6d2d142cce4c582e6a1ab442adac52b5799414 (diff) | |
download | lombok-5ef5c77198acd9fc8d265f0e2fa0b0c199330868.tar.gz lombok-5ef5c77198acd9fc8d265f0e2fa0b0c199330868.tar.bz2 lombok-5ef5c77198acd9fc8d265f0e2fa0b0c199330868.zip |
Merge pull request #2780 from md-5/delombok-16
[jdk16] Add lombok opens in single location
Diffstat (limited to 'src')
-rwxr-xr-x | src/delombok/lombok/delombok/Delombok.java | 5 | ||||
-rw-r--r-- | src/delombok/lombok/delombok/DelombokApp.java | 2 | ||||
-rw-r--r-- | src/delombok/lombok/delombok/ant/DelombokTaskImpl.java | 5 |
3 files changed, 4 insertions, 8 deletions
diff --git a/src/delombok/lombok/delombok/Delombok.java b/src/delombok/lombok/delombok/Delombok.java index b210bab9..10ec5015 100755 --- a/src/delombok/lombok/delombok/Delombok.java +++ b/src/delombok/lombok/delombok/Delombok.java @@ -168,6 +168,10 @@ public class Delombok { private boolean help; } + static { + LombokProcessor.addOpensForLombok(); + } + private static String indentAndWordbreak(String in, int indent, int maxLen) { StringBuilder out = new StringBuilder(); StringBuilder line = new StringBuilder(); @@ -315,7 +319,6 @@ public class Delombok { } } - LombokProcessor.addOpensForLombok(); delombok.delombok(); } catch (Exception e) { if (!args.quiet) { diff --git a/src/delombok/lombok/delombok/DelombokApp.java b/src/delombok/lombok/delombok/DelombokApp.java index ef3bbd50..f5a5fc81 100644 --- a/src/delombok/lombok/delombok/DelombokApp.java +++ b/src/delombok/lombok/delombok/DelombokApp.java @@ -36,7 +36,6 @@ import java.util.jar.JarEntry; import java.util.jar.JarFile; import lombok.core.LombokApp; -import lombok.javac.apt.LombokProcessor; import lombok.permit.Permit; import lombok.spi.Provides; @@ -174,7 +173,6 @@ public class DelombokApp extends LombokApp { } private void runDirectly(List<String> args) { - LombokProcessor.addOpensForLombok(); Delombok.main(args.toArray(new String[0])); } diff --git a/src/delombok/lombok/delombok/ant/DelombokTaskImpl.java b/src/delombok/lombok/delombok/ant/DelombokTaskImpl.java index f2cd80e1..bd2f93e7 100644 --- a/src/delombok/lombok/delombok/ant/DelombokTaskImpl.java +++ b/src/delombok/lombok/delombok/ant/DelombokTaskImpl.java @@ -30,7 +30,6 @@ import java.util.List; import lombok.delombok.Delombok; import lombok.delombok.Delombok.InvalidFormatOptionException; -import lombok.javac.apt.LombokProcessor; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Location; @@ -47,10 +46,6 @@ public class DelombokTaskImpl { private Path path; private List<String> formatOptions = new ArrayList<String>(); - static { - LombokProcessor.addOpensForLombok(); - } - public void execute(Location location) throws BuildException { if (fromDir == null && path == null) throw new BuildException("Either 'from' attribute, or nested <fileset> tags are required."); if (fromDir != null && path != null) throw new BuildException("You can't specify both 'from' attribute and nested filesets. You need one or the other."); |