diff options
| author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-24 07:01:52 +0200 |
|---|---|---|
| committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-24 07:01:52 +0200 |
| commit | bcee5a50db361abe7468de74c79194d394c8229e (patch) | |
| tree | 2fc55f22574c26f648c5196d2b603d6c7beeda18 /src/lombok/eclipse | |
| parent | 6d425594176e8493ecec4d5e958a2dcbd611eeb1 (diff) | |
| download | lombok-bcee5a50db361abe7468de74c79194d394c8229e.tar.gz lombok-bcee5a50db361abe7468de74c79194d394c8229e.tar.bz2 lombok-bcee5a50db361abe7468de74c79194d394c8229e.zip | |
javac's HandleData now generates the constructor only if it doesn't already exist, and the staticConstructor is now also completed. Left: toString, hashCode, equals.
Diffstat (limited to 'src/lombok/eclipse')
| -rw-r--r-- | src/lombok/eclipse/handlers/PKG.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lombok/eclipse/handlers/PKG.java b/src/lombok/eclipse/handlers/PKG.java index 3cfbf9c6..e9d12b62 100644 --- a/src/lombok/eclipse/handlers/PKG.java +++ b/src/lombok/eclipse/handlers/PKG.java @@ -50,7 +50,7 @@ class PKG { node = node.up(); } - if ( node.get() instanceof TypeDeclaration ) { + if ( node != null && node.get() instanceof TypeDeclaration ) { TypeDeclaration typeDecl = (TypeDeclaration)node.get(); if ( typeDecl.methods != null ) for ( AbstractMethodDeclaration def : typeDecl.methods ) { char[] mName = ((AbstractMethodDeclaration)def).selector; @@ -71,7 +71,7 @@ class PKG { node = node.up(); } - if ( node.get() instanceof TypeDeclaration ) { + if ( node != null && node.get() instanceof TypeDeclaration ) { TypeDeclaration typeDecl = (TypeDeclaration)node.get(); if ( typeDecl.methods != null ) for ( AbstractMethodDeclaration def : typeDecl.methods ) { if ( def instanceof ConstructorDeclaration ) { |
