commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1226123 - /commons/proper/configuration/trunk/src/main/javacc/PropertyListParser.jj
Date Sat, 31 Dec 2011 16:06:46 GMT
Author: oheger
Date: Sat Dec 31 16:06:45 2011
New Revision: 1226123

URL: http://svn.apache.org/viewvc?rev=1226123&view=rev
Log:
Fixed some warnings.

Modified:
    commons/proper/configuration/trunk/src/main/javacc/PropertyListParser.jj

Modified: commons/proper/configuration/trunk/src/main/javacc/PropertyListParser.jj
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/javacc/PropertyListParser.jj?rev=1226123&r1=1226122&r2=1226123&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/javacc/PropertyListParser.jj (original)
+++ commons/proper/configuration/trunk/src/main/javacc/PropertyListParser.jj Sat Dec 31 16:06:45
2011
@@ -156,7 +156,7 @@ PropertyListConfiguration parse() :
 PropertyListConfiguration Dictionary() :
 {
     PropertyListConfiguration configuration = new PropertyListConfiguration();
-    List children = new ArrayList();
+    List<Node> children = new ArrayList<Node>();
     Node child = null;
 }
 {
@@ -182,7 +182,7 @@ PropertyListConfiguration Dictionary() :
     {
         for (int i = 0; i < children.size(); i++)
         {
-            child = (Node) children.get(i);
+            child = children.get(i);
             configuration.getRoot().addChild(child);
         }
 
@@ -231,7 +231,7 @@ Object Element() :
 
 List Array() :
 {
-    List list = new ArrayList();
+    List<Object> list = new ArrayList<Object>();
     Object element = null;
 }
 {



Mime
View raw message