You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by he...@apache.org on 2012/03/13 11:46:45 UTC

svn commit: r1300064 - in /commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3: JexlEngine.java JexlException.java

Author: henrib
Date: Tue Mar 13 10:46:44 2012
New Revision: 1300064

URL: http://svn.apache.org/viewvc?rev=1300064&view=rev
Log:
Javadoc; removed unecessary initialization

Modified:
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/JexlEngine.java
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/JexlException.java

Modified: commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/JexlEngine.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/JexlEngine.java?rev=1300064&r1=1300063&r2=1300064&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/JexlEngine.java (original)
+++ commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/JexlEngine.java Tue Mar 13 10:46:44 2012
@@ -33,7 +33,6 @@ import org.apache.commons.jexl3.introspe
  *  <li>Error reporting</li>
  *  <li>Logging</li>
  * </ul>
- * </p>
  * <p>
  * Note that methods that evaluate expressions may throw <em>unchecked</em> exceptions;
  * The {@link JexlException} are thrown in "non-silent" mode but since these are

Modified: commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/JexlException.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/JexlException.java?rev=1300064&r1=1300063&r2=1300064&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/JexlException.java (original)
+++ commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/JexlException.java Tue Mar 13 10:46:44 2012
@@ -90,11 +90,10 @@ public class JexlException extends Runti
     private static <X extends Throwable> X clean(X xthrow) {
         if (xthrow != null) {
             StackTraceElement[] stack = xthrow.getStackTrace();
-            StackTraceElement se = null;
             List<StackTraceElement> stackJexl = new ArrayList<StackTraceElement>();
             stackJexl.add(stack[0]);
             for (int s = 1; s < stack.length; ++s) {
-                se = stack[s];
+                StackTraceElement se = stack[s];
                 String className = se.getClassName();
                 if (!className.startsWith("org.apache.commons.jexl3")) {
                     stackJexl.add(se);
@@ -106,7 +105,7 @@ public class JexlException extends Runti
     }
 
     /**
-     * Unwraps the cause of a throwable due to reflection. 
+     * Unwraps the cause of a throwable due to reflection.
      * @param xthrow the throwable
      * @return the cause
      */