aboutsummaryrefslogtreecommitdiff
path: root/src/netbeansAgent/lombok/netbeans/agent/NetbeansEntryPoint.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/netbeansAgent/lombok/netbeans/agent/NetbeansEntryPoint.java')
-rw-r--r--src/netbeansAgent/lombok/netbeans/agent/NetbeansEntryPoint.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/netbeansAgent/lombok/netbeans/agent/NetbeansEntryPoint.java b/src/netbeansAgent/lombok/netbeans/agent/NetbeansEntryPoint.java
index 0a13a474..963b70b5 100644
--- a/src/netbeansAgent/lombok/netbeans/agent/NetbeansEntryPoint.java
+++ b/src/netbeansAgent/lombok/netbeans/agent/NetbeansEntryPoint.java
@@ -68,7 +68,8 @@ public class NetbeansEntryPoint implements TaskListener {
@Override public void finished(TaskEvent event) {
if (TaskEvent.Kind.PARSE == event.getKind()) {
JavacTransformer transformer = new JavacTransformer(new DummyMessager()); //TODO hook into netbeans error reporting!
- transformer.transform(context, Collections.singleton((JCCompilationUnit)event.getCompilationUnit()));
+ JCCompilationUnit compilationUnit = (JCCompilationUnit) event.getCompilationUnit();
+ transformer.transform(context, Collections.singleton(compilationUnit));
}
}
}