aboutsummaryrefslogtreecommitdiff
path: root/src/netbeansAgent/lombok/netbeans/agent/NetbeansEntryPoint.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-12-02 00:05:21 +0100
committerReinier Zwitserloot <reinier@tipit.to>2009-12-02 00:05:21 +0100
commit8165f4628f75618f1cd105ad8901f273ada261e4 (patch)
treedf16c2db4f585d5dfb2f2473a3484edd772107e0 /src/netbeansAgent/lombok/netbeans/agent/NetbeansEntryPoint.java
parent199f7f74fd35462dced087280af066cf2cad7596 (diff)
downloadlombok-8165f4628f75618f1cd105ad8901f273ada261e4.tar.gz
lombok-8165f4628f75618f1cd105ad8901f273ada261e4.tar.bz2
lombok-8165f4628f75618f1cd105ad8901f273ada261e4.zip
netbeans agent now works!
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));
}
}
}