commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1207350 - in /commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2: Interpreter.java JexlException.java
Date Mon, 28 Nov 2011 16:05:07 GMT
Author: sebb
Date: Mon Nov 28 16:05:06 2011
New Revision: 1207350

URL: http://svn.apache.org/viewvc?rev=1207350&view=rev
Log:
Unnecessary casts

Modified:
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/Interpreter.java
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlException.java

Modified: commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/Interpreter.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/Interpreter.java?rev=1207350&r1=1207349&r2=1207350&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/Interpreter.java (original)
+++ commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/Interpreter.java Mon
Nov 28 16:05:06 2011
@@ -285,7 +285,7 @@ public class Interpreter implements Pars
      */
     protected JexlNode findNullOperand(RuntimeException xrt, JexlNode node, Object left,
Object right) {
         if (xrt instanceof ArithmeticException
-                && (Object) JexlException.NULL_OPERAND == xrt.getMessage()) {
+                && JexlException.NULL_OPERAND == xrt.getMessage()) {
             if (left == null) {
                 return node.jjtGetChild(0);
             }

Modified: commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlException.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlException.java?rev=1207350&r1=1207349&r2=1207350&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlException.java (original)
+++ commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlException.java Mon
Nov 28 16:05:06 2011
@@ -393,7 +393,7 @@ public class JexlException extends Runti
         msg.append(' ');
         msg.append(detailedMessage());
         Throwable cause = getCause();
-        if (cause != null && (Object) NULL_OPERAND == cause.getMessage()) {
+        if (cause != null && NULL_OPERAND == cause.getMessage()) {
             msg.append(" caused by null operand");
         }
         return msg.toString();



Mime
View raw message