You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tv...@apache.org on 2012/08/26 20:43:00 UTC

svn commit: r1377478 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/BasePeerImpl.java

Author: tv
Date: Sun Aug 26 18:42:59 2012
New Revision: 1377478

URL: http://svn.apache.org/viewvc?rev=1377478&view=rev
Log:
This test makes no sense here anymore.

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/BasePeerImpl.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/BasePeerImpl.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/BasePeerImpl.java?rev=1377478&r1=1377477&r2=1377478&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/BasePeerImpl.java (original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/BasePeerImpl.java Sun Aug 26 18:42:59 2012
@@ -2562,10 +2562,6 @@ public class BasePeerImpl<T> implements 
      */
     protected void setDbName(org.apache.torque.criteria.Criteria crit) throws TorqueException
     {
-        if (!Torque.isInit())
-        {
-            throw new TorqueException("Torque is not initialized");
-        }
         if (crit.getDbName() == null)
         {
             crit.setDbName(getDatabaseName());
@@ -2585,10 +2581,6 @@ public class BasePeerImpl<T> implements 
     @Deprecated
     protected void setDbName(Criteria crit) throws TorqueException
     {
-        if (!Torque.isInit())
-        {
-            throw new TorqueException("Torque is not initialized");
-        }
         if (crit.getDbName() == null)
         {
             crit.setDbName(getDatabaseName());



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