diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-12-02 00:05:21 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-12-02 00:05:21 +0100 |
commit | 8165f4628f75618f1cd105ad8901f273ada261e4 (patch) | |
tree | df16c2db4f585d5dfb2f2473a3484edd772107e0 /src/netbeansAgent/lombok/netbeans/agent/NetbeansEntryPoint.java | |
parent | 199f7f74fd35462dced087280af066cf2cad7596 (diff) | |
download | lombok-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.java | 3 |
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)); } } } |