aboutsummaryrefslogtreecommitdiff
path: root/experimental
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-10-18 16:42:33 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-10-18 16:42:33 +0200
commitbd3966af0e5d2ce948bf22dcb99227e0df5c6f13 (patch)
treeaef91399af0bef930dd18acb8bf0bb0f4817557e /experimental
parent56616f3bec6d8eda8c2bcf0550490f0098fb7fed (diff)
parent1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7 (diff)
downloadlombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.tar.gz
lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.tar.bz2
lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.zip
Merge branch 'master' of git@github.com:rzwitserloot/lombok
Diffstat (limited to 'experimental')
-rw-r--r--experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java b/experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java
index 8dc084ce..7c020a65 100644
--- a/experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java
+++ b/experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java
@@ -45,10 +45,10 @@ import com.sun.tools.javac.processing.JavacProcessingEnvironment;
@SupportedSourceVersion(SourceVersion.RELEASE_6)
public class DisableCheckedExceptionsAgent extends AbstractProcessor {
/** Inject an agent if we're on a sun-esque JVM. */
- @Override public void init(ProcessingEnvironment processingEnv) {
- super.init(processingEnv);
- if (!(processingEnv instanceof JavacProcessingEnvironment)) {
- processingEnv.getMessager().printMessage(Kind.WARNING, "You aren't using a compiler based around javac v1.6, so lombok will not work properly.");
+ @Override public void init(ProcessingEnvironment procEnv) {
+ super.init(procEnv);
+ if (!(procEnv instanceof JavacProcessingEnvironment)) {
+ procEnv.getMessager().printMessage(Kind.WARNING, "You aren't using a compiler based around javac v1.6, so lombok will not work properly.");
this.processingEnv = null;
}
@@ -60,11 +60,11 @@ public class DisableCheckedExceptionsAgent extends AbstractProcessor {
return false;
}
- public static void agentmain(String agentArgs, Instrumentation instrumentation) throws Exception {
+ public static void agentmain(@SuppressWarnings("unused") String agentArgs, Instrumentation instrumentation) throws Exception {
registerPatchScripts(instrumentation, true);
}
- public static void premain(String agentArgs, Instrumentation instrumentation) throws Exception {
+ public static void premain(@SuppressWarnings("unused") String agentArgs, Instrumentation instrumentation) throws Exception {
registerPatchScripts(instrumentation, false);
}