You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2007/05/17 06:42:46 UTC
svn commit: r538802 -
/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java
Author: nbubna
Date: Wed May 16 21:42:39 2007
New Revision: 538802
URL: http://svn.apache.org/viewvc?view=rev&rev=538802
Log:
init was being set to null by the property declaration after being properly set by the constructor call
Modified:
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java
Modified: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java?view=diff&rev=538802&r1=538801&r2=538802
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java (original)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java Wed May 16 21:42:39 2007
@@ -36,7 +36,7 @@
{
public static final String INIT_METHOD_NAME = "init";
- private Method init = null;
+ private Method init;
/**
* Creates a new instance using the minimum required info
@@ -52,6 +52,7 @@
*
* @param clazz the java.lang.Class of the tool
*/
+ @Override
public void setClass(Class clazz)
{
super.setClass(clazz);
@@ -69,6 +70,7 @@
}
+ @Override
public Object create(Map<String,Object> dynamicProperties)
{
Object tool = super.create(dynamicProperties);