[prev in list] [next in list] [prev in thread] [next in thread] 

List:       turbine-torque-dev
Subject:    svn commit: r1195307 -
From:       tfischer () apache ! org
Date:       2011-10-31 2:04:30
Message-ID: 20111031020430.7FF62238890B () eris ! apache ! org
[Download RAW message or body]

Author: tfischer
Date: Mon Oct 31 02:04:30 2011
New Revision: 1195307

URL: http://svn.apache.org/viewvc?rev=1195307&view=rev
Log:
removed unnecessary instanceof check and cast

Modified:
    db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/outlet/OutletConfigurationSaxHandler.java


Modified: db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/outlet/OutletConfigurationSaxHandler.java
                
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/ja \
va/org/apache/torque/generator/configuration/outlet/OutletConfigurationSaxHandler.java?rev=1195307&r1=1195306&r2=1195307&view=diff
 ==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/outlet/OutletConfigurationSaxHandler.java \
                (original)
+++ db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/configuration/outlet/OutletConfigurationSaxHandler.java \
Mon Oct 31 02:04:30 2011 @@ -288,19 +288,7 @@ public class \
OutletConfigurationSaxHandl  for (UntypedOutletSaxHandlerFactory candidate
                 : outletTypes.getUntypedOutletHandlerFactories())
         {
-            if (! (candidate instanceof 
-                    UntypedOutletSaxHandlerFactory))
-            {
-                throw new SAXException(
-                        "OutletSaxHandlerFactory of type " 
-                            + candidate.getClass()
-                                .getName()
-                            + " has returned null as type but is not"
-                            + " of type UntypedOutletSaxHandlerFactory;"
-                            + " this is an error.");
-            }
-            if (((UntypedOutletSaxHandlerFactory) candidate).canHandle(
-                    outletType))
+            if (candidate.canHandle(outletType))
             {
                 untypedHandlerFactory = candidate;
                 break;



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic