Skip to content

Commit 66a9c80

Browse files
committed
@j2sNative now allows simple Javadoc without an empty {}
System.err reports each case of @j2sNative and @j2sIgnore. Found three bugs immediately.
1 parent bfa57ec commit 66a9c80

5 files changed

Lines changed: 292 additions & 167 deletions

File tree

sources/net.sf.j2s.core/src/net/sf/j2s/core/astvisitors/ASTEmptyVisitor.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.eclipse.jdt.core.dom.ArrayType;
3333
import org.eclipse.jdt.core.dom.AssertStatement;
3434
import org.eclipse.jdt.core.dom.Assignment;
35-
import org.eclipse.jdt.core.dom.Block;
3635
import org.eclipse.jdt.core.dom.BlockComment;
3736
import org.eclipse.jdt.core.dom.BodyDeclaration;
3837
import org.eclipse.jdt.core.dom.BooleanLiteral;
@@ -422,8 +421,6 @@ public AbstractPluginAdapter registerPluginVisitor(AbstractPluginAdapter adapter
422421
return adapter;
423422
}
424423

425-
protected int lastPos = Integer.MAX_VALUE;
426-
427424
/*
428425
* The following are empty super.* methods which will be use to help
429426
* developing Java2Script compiler.
@@ -744,13 +741,6 @@ public void postVisit(ASTNode node) {
744741
super.postVisit(node);
745742
}
746743

747-
public void preVisit(ASTNode node) {
748-
// buffer.append(node.getClass().getName());
749-
if (!(node instanceof Block))
750-
lastPos = node.getStartPosition();
751-
super.preVisit(node);
752-
}
753-
754744
public boolean visit(ArrayType node) {
755745
return super.visit(node);
756746
}

0 commit comments

Comments
 (0)