cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmen...@apache.org
Subject svn commit: r616531 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser: ASTAnd.java ASTOr.java ASTSubtract.java
Date Tue, 29 Jan 2008 21:56:12 GMT
Author: kmenard
Date: Tue Jan 29 13:56:09 2008
New Revision: 616531

URL: http://svn.apache.org/viewvc?rev=616531&view=rev
Log:
Generics.

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTAnd.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTOr.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTSubtract.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTAnd.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTAnd.java?rev=616531&r1=616530&r2=616531&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTAnd.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTAnd.java
Tue Jan 29 13:56:09 2008
@@ -53,12 +53,12 @@
         connectChildren();
     }
 
-    public ASTAnd(Collection nodes) {
+    public ASTAnd(Collection<Node> nodes) {
         super(ExpressionParserTreeConstants.JJTAND);
         int len = nodes.size();
-        Iterator it = nodes.iterator();
+        Iterator<Node> it = nodes.iterator();
         for (int i = 0; i < len; i++) {
-            jjtAddChild((Node) it.next(), i);
+            jjtAddChild(it.next(), i);
         }
         
         connectChildren();

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTOr.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTOr.java?rev=616531&r1=616530&r2=616531&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTOr.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTOr.java
Tue Jan 29 13:56:09 2008
@@ -49,12 +49,12 @@
         connectChildren();
     }
 
-    public ASTOr(Collection nodes) {
+    public ASTOr(Collection<Node> nodes) {
         super(ExpressionParserTreeConstants.JJTOR);
         int len = nodes.size();
-        Iterator it = nodes.iterator();
+        Iterator<Node> it = nodes.iterator();
         for (int i = 0; i < len; i++) {
-            jjtAddChild((Node) it.next(), i);
+            jjtAddChild(it.next(), i);
         }
         connectChildren();
     }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTSubtract.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTSubtract.java?rev=616531&r1=616530&r2=616531&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTSubtract.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/exp/parser/ASTSubtract.java
Tue Jan 29 13:56:09 2008
@@ -51,10 +51,10 @@
         connectChildren();
     }
 
-    public ASTSubtract(Collection nodes) {
+    public ASTSubtract(Collection<Object> nodes) {
         super(ExpressionParserTreeConstants.JJTSUBTRACT);
         int len = nodes.size();
-        Iterator it = nodes.iterator();
+        Iterator<Object> it = nodes.iterator();
         for (int i = 0; i < len; i++) {
             jjtAddChild(wrapChild(it.next()), i);
         }



Mime
View raw message