Author: scabanovich
Date: 2007-11-26 11:48:08 -0500 (Mon, 26 Nov 2007)
New Revision: 5091
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ASTVisitorImpl.java
Log:
JBIDE-1361
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ASTVisitorImpl.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ASTVisitorImpl.java 2007-11-26
16:34:17 UTC (rev 5090)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ASTVisitorImpl.java 2007-11-26
16:48:08 UTC (rev 5091)
@@ -104,13 +104,17 @@
}
public boolean visit(TypeDeclaration node) {
- annotatedType = new AnnotatedASTNode<TypeDeclaration>(node);
- currentAnnotatedNode = annotatedType;
+ if(annotatedType == null) {
+ annotatedType = new AnnotatedASTNode<TypeDeclaration>(node);
+ currentAnnotatedNode = annotatedType;
+ }
return true;
}
public void endVisit(TypeDeclaration node) {
- currentAnnotatedNode = null;
+ if(currentAnnotatedNode != null && currentAnnotatedNode.node == node) {
+ currentAnnotatedNode = null;
+ }
}
public boolean visit(FieldDeclaration node) {
Show replies by date