diff options
Diffstat (limited to 'experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java')
-rw-r--r-- | experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java b/experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java index deb4626f..8dc084ce 100644 --- a/experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java +++ b/experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java @@ -52,7 +52,7 @@ public class DisableCheckedExceptionsAgent extends AbstractProcessor { this.processingEnv = null; } - new LiveInjector().injectSelf(); + new LiveInjector().inject(LiveInjector.findPathJar(DisableCheckedExceptionsAgent.class)); } /** Does nothing - we just wanted the init method so we can inject an agent. */ @@ -81,10 +81,9 @@ public class DisableCheckedExceptionsAgent extends AbstractProcessor { sm.addScript(ScriptBuilder.exitEarly() .target(new MethodTarget("com.sun.tools.javac.comp.Check", "isUnchecked", "boolean", "com.sun.tools.javac.code.Symbol$ClassSymbol")) - .transplant() .decisionMethod(new Hook("lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent", "retTrue", "()Z")) .valueMethod(new Hook("lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent", "retTrue", "()Z")) - .build()); + .insert().build()); } public static boolean retTrue() { |