cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmen...@apache.org
Subject svn commit: r613746 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src: main/java/org/apache/cayenne/map/ main/java/org/apache/cayenne/query/ main/java/org/apache/cayenne/remote/ test/java/org/apache/cayenne/access/
Date Mon, 21 Jan 2008 03:56:31 GMT
Author: kmenard
Date: Sun Jan 20 19:56:30 2008
New Revision: 613746

URL: http://svn.apache.org/viewvc?rev=613746&view=rev
Log:
Removed unnecessary casts.

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/map/Procedure.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/ProcedureQuery.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/ClientChannel.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/RemoteIncrementalFaultList.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ToManyListTest.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/map/Procedure.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/map/Procedure.java?rev=613746&r1=613745&r2=613746&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/map/Procedure.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/map/Procedure.java
Sun Jan 20 19:56:30 2008
@@ -203,7 +203,7 @@
         // if procedure returns parameters, this must be the first parameter
         // otherwise, return null
         return (returningValue && callParameters.size() > 0)
-                ? (ProcedureParameter) callParameters.get(0)
+                ? callParameters.get(0)
                 : null;
     }
 

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/ProcedureQuery.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/ProcedureQuery.java?rev=613746&r1=613745&r2=613746&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/ProcedureQuery.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/ProcedureQuery.java
Sun Jan 20 19:56:30 2008
@@ -150,7 +150,7 @@
     public QueryMetadata getMetaData(EntityResolver resolver) {
 
         metaData.resolve(root, resultClass != null
-                ? (Object) resultClass
+                ? resultClass
                 : resultEntityName, resolver, this);
         return metaData;
     }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/ClientChannel.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/ClientChannel.java?rev=613746&r1=613745&r2=613746&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/ClientChannel.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/ClientChannel.java
Sun Jan 20 19:56:30 2008
@@ -209,7 +209,7 @@
                     }
 
                     Object postedBy = (originatingContext != null)
-                            ? (Object) originatingContext
+                            ? originatingContext
                             : this;
                     GraphEvent e = new GraphEvent(this, postedBy, notification);
                     eventManager.postEvent(e, subject);

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/RemoteIncrementalFaultList.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/RemoteIncrementalFaultList.java?rev=613746&r1=613745&r2=613746&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/RemoteIncrementalFaultList.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/remote/RemoteIncrementalFaultList.java
Sun Jan 20 19:56:30 2008
@@ -91,7 +91,7 @@
 
         this.pageSize = metadata.getPageSize();
         this.helper = (metadata.isFetchingDataRows())
-                ? (ListHelper) new DataRowListHelper()
+                ? new DataRowListHelper()
                 : new PersistentListHelper();
         this.context = context;
 

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ToManyListTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ToManyListTest.java?rev=613746&r1=613745&r2=613746&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ToManyListTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ToManyListTest.java
Sun Jan 20 19:56:30 2008
@@ -72,8 +72,7 @@
 
         // immediately tag Artist as MODIFIED, since we are messing up with relationship
         // bypassing normal CayenneDataObject methods
-        ((Artist) list.getRelationshipOwner())
-                .setPersistenceState(PersistenceState.MODIFIED);
+        list.getRelationshipOwner().setPersistenceState(PersistenceState.MODIFIED);
 
         assertTrue("List must be unresolved for an existing object", list.isFault());
 
@@ -112,8 +111,7 @@
 
         // immediately tag Artist as MODIFIED, since we are messing up with relationship
         // bypassing normal CayenneDataObject methods
-        ((Artist) list.getRelationshipOwner())
-                .setPersistenceState(PersistenceState.MODIFIED);
+        list.getRelationshipOwner().setPersistenceState(PersistenceState.MODIFIED);
 
         assertTrue("List must be unresolved...", list.isFault());
         list.add(p1);
@@ -150,8 +148,7 @@
 
         // immediately tag Artist as MODIFIED, since we are messing up with relationship
         // bypassing normal CayenneDataObject methods
-        ((Artist) list.getRelationshipOwner())
-                .setPersistenceState(PersistenceState.MODIFIED);
+        list.getRelationshipOwner().setPersistenceState(PersistenceState.MODIFIED);
 
         assertTrue("List must be unresolved...", list.isFault());
         list.add(p1);



Mime
View raw message