cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r609306 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLUpdateItemTranslator.java
Date Sun, 06 Jan 2008 13:23:56 GMT
Author: aadamchik
Date: Sun Jan  6 05:23:55 2008
New Revision: 609306

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

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

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLUpdateItemTranslator.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLUpdateItemTranslator.java?rev=609306&r1=609305&r2=609306&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLUpdateItemTranslator.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLUpdateItemTranslator.java
Sun Jan  6 05:23:55 2008
@@ -54,12 +54,10 @@
 
                 context.trim(2);
 
-                EJBQLMultiColumnOperand lhs = (EJBQLMultiColumnOperand) multiColumnOperands
-                        .get(0);
-                EJBQLMultiColumnOperand rhs = (EJBQLMultiColumnOperand) multiColumnOperands
-                        .get(1);
+                EJBQLMultiColumnOperand lhs = multiColumnOperands.get(0);
+                EJBQLMultiColumnOperand rhs = multiColumnOperands.get(1);
 
-                Iterator it = lhs.getKeys().iterator();
+                Iterator<?> it = lhs.getKeys().iterator();
                 while (it.hasNext()) {
                     Object key = it.next();
 
@@ -93,7 +91,6 @@
                 return visitPath(expression, finishedChildIndex);
             }
         };
-
 
         // some DB's do not support aliases in SET (Postgresql)
         pathTranslator.setUsingAliases(false);



Mime
View raw message