From: <pj...@us...> - 2009-05-30 22:46:33
|
Revision: 6430 http://jython.svn.sourceforge.net/jython/?rev=6430&view=rev Author: pjenvey Date: 2009-05-30 22:46:21 +0000 (Sat, 30 May 2009) Log Message: ----------- quiet a simple unchecked warning pervading the ast nodes Modified Paths: -------------- trunk/jython/ast/asdl_antlr.py trunk/jython/src/org/python/antlr/PythonTree.java Modified: trunk/jython/ast/asdl_antlr.py =================================================================== --- trunk/jython/ast/asdl_antlr.py 2009-05-30 21:20:11 UTC (rev 6429) +++ trunk/jython/ast/asdl_antlr.py 2009-05-30 22:46:21 UTC (rev 6430) @@ -441,7 +441,7 @@ self.emit("", 0) # The visitChildren() method - self.emit("public void traverse(VisitorIF visitor) throws Exception {", depth) + self.emit("public void traverse(VisitorIF<?> visitor) throws Exception {", depth) for f in fields: if self.bltinnames.has_key(str(f.type)): continue Modified: trunk/jython/src/org/python/antlr/PythonTree.java =================================================================== --- trunk/jython/src/org/python/antlr/PythonTree.java 2009-05-30 21:20:11 UTC (rev 6429) +++ trunk/jython/src/org/python/antlr/PythonTree.java 2009-05-30 22:46:21 UTC (rev 6430) @@ -176,6 +176,7 @@ node.setChildIndex(index); } + @Override public String toString() { if (isNil()) { return "None"; @@ -245,7 +246,7 @@ throw new RuntimeException("Unexpected node: " + this); } - public void traverse(VisitorIF visitor) throws Exception { + public void traverse(VisitorIF<?> visitor) throws Exception { throw new RuntimeException("Cannot traverse node: " + this); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |