db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1377411 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java
Date Sun, 26 Aug 2012 10:23:52 GMT
Author: tfischer
Date: Sun Aug 26 10:23:51 2012
New Revision: 1377411

URL: http://svn.apache.org/viewvc?rev=1377411&view=rev
Log:
remove redundant null check

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java?rev=1377411&r1=1377410&r2=1377411&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java
Sun Aug 26 10:23:51 2012
@@ -299,12 +299,6 @@ public class ForeignKeyMap implements Se
             if (foreign == null)
             {
                 TableMap foreignTable =  foreignKeyMap.getForeignTable();
-                if (foreignTable == null)
-                {
-                    throw new IllegalStateException(
-                            "Table " + foreignKeyMap.getForeignTableName()
-                                + " is not yet initialized");
-                }
                 foreign = foreignTable.getColumn(foreignName);
                 if (foreign == null)
                 {



---------------------------------------------------------------------
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