cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r606894 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLFromTranslator.java
Date Wed, 26 Dec 2007 12:13:32 GMT
Author: aadamchik
Date: Wed Dec 26 04:13:31 2007
New Revision: 606894

URL: http://svn.apache.org/viewvc?rev=606894&view=rev
Log:
generics

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLFromTranslator.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLFromTranslator.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLFromTranslator.java?rev=606894&r1=606893&r2=606894&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLFromTranslator.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLFromTranslator.java
Wed Dec 26 04:13:31 2007
@@ -115,9 +115,9 @@
         String targetAlias = appendTable(rhsId);
         context.append(" ON (");
 
-        Iterator it = incomingDB.getJoins().iterator();
+        Iterator<DbJoin> it = incomingDB.getJoins().iterator();
         if (it.hasNext()) {
-            DbJoin dbJoin = (DbJoin) it.next();
+            DbJoin dbJoin = it.next();
             context
                     .append(sourceAlias)
                     .append('.')
@@ -130,7 +130,7 @@
 
         while (it.hasNext()) {
             context.append(", ");
-            DbJoin dbJoin = (DbJoin) it.next();
+            DbJoin dbJoin = it.next();
             context
                     .append(sourceAlias)
                     .append('.')



Mime
View raw message