db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r374995 - in /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker: ./ accesslayer/ core/proxy/ metadata/fieldaccess/ util/batch/
Date Sun, 05 Feb 2006 10:20:34 GMT
Author: brj
Date: Sun Feb  5 02:20:33 2006
New Revision: 374995

URL: http://svn.apache.org/viewcvs?rev=374995&view=rev
Log:
minor cleanups

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/TransientObjectException.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryPooledImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/PkEnumeration.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/RowReader.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ProxyFactoryCGLIBImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ProxyHelper.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldDynaBeanImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/batch/PreparedStatementInvocationHandler.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/TransientObjectException.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/TransientObjectException.java?rev=374995&r1=374994&r2=374995&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/TransientObjectException.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/TransientObjectException.java
Sun Feb  5 02:20:33 2006
@@ -15,7 +15,6 @@
  * limitations under the License.
  */
 
-import java.lang.Object;
 
 /**
  * This exception signals a problem with a transient object.

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryPooledImpl.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryPooledImpl.java?rev=374995&r1=374994&r2=374995&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryPooledImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryPooledImpl.java
Sun Feb  5 02:20:33 2006
@@ -132,7 +132,7 @@
         if (log.isDebugEnabled()) log.debug("createPool was called");
         PoolableObjectFactory pof = new ConPoolFactory(this, jcd);
         GenericObjectPool.Config conf = jcd.getConnectionPoolDescriptor().getObjectPoolConfig();
-        return (ObjectPool)new GenericObjectPool(pof, conf);
+        return new GenericObjectPool(pof, conf);
     }
 
     /**

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/PkEnumeration.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/PkEnumeration.java?rev=374995&r1=374994&r2=374995&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/PkEnumeration.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/PkEnumeration.java
Sun Feb  5 02:20:33 2006
@@ -182,7 +182,7 @@
             if (hasNext)
             {
                 Identity oid = getIdentityFromResultSet();
-                Identity[] args = {oid};
+                Object[] args = {oid};
                 return this.constructor.newInstance(args);
             }
             else

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/RowReader.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/RowReader.java?rev=374995&r1=374994&r2=374995&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/RowReader.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/RowReader.java
Sun Feb  5 02:20:33 2006
@@ -15,11 +15,10 @@
  * limitations under the License.
  */
 
-import org.apache.ojb.broker.metadata.ClassDescriptor;
-
 import java.io.Serializable;
-import java.sql.ResultSet;
 import java.util.Map;
+
+import org.apache.ojb.broker.metadata.ClassDescriptor;
 
 /**
  * @version $Id$

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ProxyFactoryCGLIBImpl.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ProxyFactoryCGLIBImpl.java?rev=374995&r1=374994&r2=374995&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ProxyFactoryCGLIBImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ProxyFactoryCGLIBImpl.java
Sun Feb  5 02:20:33 2006
@@ -52,7 +52,7 @@
                 interfaces = new Class[] { OJBProxy.class };
             }
 
-            result = (Factory)Enhancer.create(proxyClass, interfaces, (Callback)handler);
+            result = Enhancer.create(proxyClass, interfaces, (Callback)handler);
             proxyFactories.put(proxyClass, result);
         } else {
             result = factory.newInstance((Callback)handler);

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ProxyHelper.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ProxyHelper.java?rev=374995&r1=374994&r2=374995&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ProxyHelper.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ProxyHelper.java
Sun Feb  5 02:20:33 2006
@@ -15,9 +15,8 @@
  * limitations under the License.
  */
 
-import java.lang.ref.SoftReference;
-import java.lang.ref.WeakReference;
 import java.lang.ref.Reference;
+import java.lang.ref.WeakReference;
 
 import org.apache.ojb.broker.PBFactoryException;
 

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldDynaBeanImpl.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldDynaBeanImpl.java?rev=374995&r1=374994&r2=374995&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldDynaBeanImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldDynaBeanImpl.java
Sun Feb  5 02:20:33 2006
@@ -19,8 +19,6 @@
 import org.apache.commons.lang.SystemUtils;
 import org.apache.ojb.broker.PersistenceBrokerException;
 import org.apache.ojb.broker.metadata.MetadataException;
-import org.apache.ojb.broker.util.logging.Logger;
-import org.apache.ojb.broker.util.logging.LoggerFactory;
 
 /**
  * A {@link org.apache.ojb.broker.metadata.fieldaccess.PersistentField} implementation accesses
a property

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/batch/PreparedStatementInvocationHandler.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/batch/PreparedStatementInvocationHandler.java?rev=374995&r1=374994&r2=374995&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/batch/PreparedStatementInvocationHandler.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/batch/PreparedStatementInvocationHandler.java
Sun Feb  5 02:20:33 2006
@@ -189,7 +189,7 @@
                     }
                     else
                     {
-                        method.invoke(stmt, (Object[]) _params.get(i));
+                        method.invoke(stmt, _params.get(i));
                     }
                 }
                 catch (IllegalArgumentException ex)



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message