db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1377478 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/BasePeerImpl.java
Date Sun, 26 Aug 2012 18:43:00 GMT
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


Mime
View raw message