diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-12 17:09:04 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-12 17:09:04 +0200 |
commit | 343eb680439b3067feeca8a5c7ffe3a71f48b353 (patch) | |
tree | 0c4f334197a5294c9ad12d1967e4a81083b74997 /src/lombok | |
parent | d1157b3b8a4a317de46343d5409b9f52cfacfe43 (diff) | |
download | lombok-343eb680439b3067feeca8a5c7ffe3a71f48b353.tar.gz lombok-343eb680439b3067feeca8a5c7ffe3a71f48b353.tar.bz2 lombok-343eb680439b3067feeca8a5c7ffe3a71f48b353.zip |
Clinits should be skipped, as they are useless, and the docs even say they will be skipped.
Now they are skipped.
Diffstat (limited to 'src/lombok')
-rw-r--r-- | src/lombok/eclipse/EclipseAST.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lombok/eclipse/EclipseAST.java b/src/lombok/eclipse/EclipseAST.java index 161e8909..83c2872d 100644 --- a/src/lombok/eclipse/EclipseAST.java +++ b/src/lombok/eclipse/EclipseAST.java @@ -15,6 +15,7 @@ import java.util.Map; import org.eclipse.jdt.internal.compiler.ast.ASTNode; import org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration; import org.eclipse.jdt.internal.compiler.ast.Argument; +import org.eclipse.jdt.internal.compiler.ast.Clinit; import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration; import org.eclipse.jdt.internal.compiler.ast.FieldDeclaration; import org.eclipse.jdt.internal.compiler.ast.Initializer; @@ -46,6 +47,7 @@ public class EclipseAST { traverseChildren(visitor, child); visitor.endVisitField(child, (FieldDeclaration)n); } else if ( n instanceof AbstractMethodDeclaration ) { + if ( n instanceof Clinit ) continue; visitor.visitMethod(child, (AbstractMethodDeclaration)n); traverseChildren(visitor, child); visitor.endVisitMethod(child, (AbstractMethodDeclaration)n); |