commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r800069 - /commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/parser/SimpleNode.java
Date Sun, 02 Aug 2009 13:23:26 GMT
Author: sebb
Date: Sun Aug  2 13:23:25 2009
New Revision: 800069

URL: http://svn.apache.org/viewvc?rev=800069&view=rev
Log:
Unnecessary cast; @Override

Modified:
    commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/parser/SimpleNode.java

Modified: commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/parser/SimpleNode.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/parser/SimpleNode.java?rev=800069&r1=800068&r2=800069&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/parser/SimpleNode.java
(original)
+++ commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/parser/SimpleNode.java
Sun Aug  2 13:23:25 2009
@@ -108,6 +108,7 @@
      toString(String), otherwise overriding toString() is probably all
      you need to do. */
 
+  @Override
   public String toString() { return ParserTreeConstants.jjtNodeName[id]; }
   public String toString(String prefix) { return prefix + toString(); }
 
@@ -118,7 +119,7 @@
     System.out.println(toString(prefix));
     if (children != null) {
       for (int i = 0; i < children.length; ++i) {
-  SimpleNode n = (SimpleNode)children[i];
+  SimpleNode n = children[i];
   if (n != null) {
     n.dump(prefix + " ");
   }



Mime
View raw message