velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r538990 - /velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java
Date Thu, 17 May 2007 16:06:49 GMT
Author: nbubna
Date: Thu May 17 09:06:48 2007
New Revision: 538990

URL: http://svn.apache.org/viewvc?view=rev&rev=538990
Log:
more trivial tweaks

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=538990&r1=538989&r2=538990
==============================================================================
--- 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 Thu
May 17 09:06:48 2007
@@ -19,7 +19,6 @@
  * under the License.
  */
 
-import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 import java.util.Map;
 import org.apache.velocity.tools.ToolContext;
@@ -79,8 +78,7 @@
             // ctx should, in all cases where a tool has such a method,
             // actually be a View(Tool)Context, but we don't want to link
             // to that class here, so as not to pollute the generic jar
-            Object ctx =
-                dynamicProperties.get(ToolContext.CONTEXT_KEY);
+            Object ctx = dynamicProperties.get(ToolContext.CONTEXT_KEY);
             if (ctx != null)
             {
                 invoke(this.init, tool, ctx);



Mime
View raw message