Skip to content

Commit b07bf61

Browse files
author
evlich
committed
Added tests for DisplayVisitor
git-svn-id: file:///tmp/test-svn/trunk@2870 fe72c1cf-3628-48e9-8b72-1c46755d3cff
1 parent bc2ff71 commit b07bf61

File tree

3 files changed

+1150
-3
lines changed

3 files changed

+1150
-3
lines changed

dynamicjava/src/koala/Version.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* This file is copied to Version.java by the build process, which also
5454
* fills in the right values of the date and time.
5555
*
56-
* This javadoc corresponds to build drjava-20050206-0349;
56+
* This javadoc corresponds to build drjava-20050206-2235;
5757
*
5858
* @version $Id$
5959
*/
@@ -62,7 +62,7 @@ public abstract class Version {
6262
* This string will be automatically expanded upon "ant commit".
6363
* Do not edit it by hand!
6464
*/
65-
private static final String BUILD_TIME_STRING = "20050206-0349";
65+
private static final String BUILD_TIME_STRING = "20050206-2235";
6666

6767
/** A {@link Date} version of the build time. */
6868
private static final Date BUILD_TIME = _getBuildDate();

dynamicjava/src/koala/dynamicjava/util/DisplayVisitor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,11 @@ public Void visit(ReturnStatement node) {
329329
print("l."+node.getBeginLine()+" ReturnStatement {");
330330
print("expression:");
331331
indent();
332-
node.getExpression().acceptVisitor(this);
332+
//Bug fix to allow for "return;"
333+
if( node.getExpression() != null )
334+
node.getExpression().acceptVisitor(this);
335+
else
336+
print("null");
333337
unindent();
334338
displayProperties(node);
335339
print("}");

0 commit comments

Comments
 (0)