velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r718454 - /velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/node/ASTReference.java
Date Tue, 18 Nov 2008 00:59:02 GMT
Author: nbubna
Date: Mon Nov 17 16:59:02 2008
New Revision: 718454

URL: http://svn.apache.org/viewvc?rev=718454&view=rev
Log:
remove redundant null check

Modified:
    velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/node/ASTReference.java

Modified: velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/node/ASTReference.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/node/ASTReference.java?rev=718454&r1=718453&r2=718454&view=diff
==============================================================================
--- velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/node/ASTReference.java
(original)
+++ velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/node/ASTReference.java
Mon Nov 17 16:59:02 2008
@@ -412,8 +412,7 @@
 
             if (context.getAllowRendering())
             {
-                if (localNullString == null)
-                    localNullString = getNullString(context);
+                localNullString = getNullString(context);
 
                 writer.write(escPrefix);
                 writer.write(escPrefix);



Mime
View raw message