remove goofy warning since it isn't fatal (#3835)

This commit is contained in:
Ben Fry
2015-09-21 16:44:01 -04:00
parent c7e29db0d2
commit a682332b67

View File

@@ -942,7 +942,7 @@ public class ASTGenerator {
// find nearest ASTNode
nearestNode = findClosestNode(lineNumber, astRootNode);
if (nearestNode == null) {
// Make sure nearestNode is not NULL if couldn't find a closeset node
// Make sure nearestNode is not NULL if couldn't find a closest node
nearestNode = astRootNode;
}
Messages.loge(lineNumber + " Nearest ASTNode to PRED "
@@ -1586,8 +1586,7 @@ public class ASTGenerator {
} else if (parent instanceof Block) {
nodes = ((Block) parent).statements();
} else {
System.err.println("THIS CONDITION SHOULD NOT OCCUR - findClosestNode "
+ getNodeAsString(parent));
System.err.println("findClosestNode() found " + getNodeAsString(parent));
return null;
}