db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1145463 - /db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/primaryKeyMethods.vm
Date Tue, 12 Jul 2011 05:24:59 GMT
Author: tfischer
Date: Tue Jul 12 05:24:59 2011
New Revision: 1145463

URL: http://svn.apache.org/viewvc?rev=1145463&view=rev
Log:
make findbugs happy on generated code

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/primaryKeyMethods.vm

Modified: db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/primaryKeyMethods.vm
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/primaryKeyMethods.vm?rev=1145463&r1=1145462&r2=1145463&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/primaryKeyMethods.vm
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/primaryKeyMethods.vm
Tue Jul 12 05:24:59 2011
@@ -149,7 +149,7 @@
         #else
           #set ( $valueMethod = "${columnFieldType.substring(0,1).toLowerCase()}${columnFieldType.substring(1)}Value"
)
         #end
-        ${setter}(new ${columnFieldType}(((NumberKey) keys[$i]).${valueMethod}()));
+        ${setter}(((NumberKey) keys[$i]).${valueMethod}());
       #end
     #elseif($columnFieldType == "String")
         ${setter}(keys[$i].toString());



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