aboutsummaryrefslogtreecommitdiff
path: root/experimental/src/lombok/javac
diff options
context:
space:
mode:
authorunknown <Roels@.tis.local>2009-10-18 15:12:41 +0200
committerunknown <Roels@.tis.local>2009-10-18 15:12:41 +0200
commit1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7 (patch)
tree41c3f687db56c92610f0687d3466ab573a02d573 /experimental/src/lombok/javac
parent4bf8ee3f67f7c076421b6c6a396c85e7bd794749 (diff)
downloadlombok-1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7.tar.gz
lombok-1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7.tar.bz2
lombok-1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7.zip
Configured warnings and solved some.
Diffstat (limited to 'experimental/src/lombok/javac')
-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);
}