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 tf...@apache.org on 2011/05/02 20:17:45 UTC
svn commit: r1098708 -
/db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/setterReferencedObjectByObjectKey.vm
Author: tfischer
Date: Mon May 2 18:17:45 2011
New Revision: 1098708
URL: http://svn.apache.org/viewvc?rev=1098708&view=rev
Log:
avoid findbugs warnings in generated code
Modified:
db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/setterReferencedObjectByObjectKey.vm
Modified: db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/setterReferencedObjectByObjectKey.vm
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/setterReferencedObjectByObjectKey.vm?rev=1098708&r1=1098707&r2=1098708&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/setterReferencedObjectByObjectKey.vm (original)
+++ db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/setterReferencedObjectByObjectKey.vm Mon May 2 18:17:45 2011
@@ -72,13 +72,13 @@
#elseif ($localFieldType == "double")
${localFieldSetter}(((NumberKey) $keyVariable).doubleValue());
#elseif ($localFieldType == "Short")
- ${localFieldSetter}(new Short(((NumberKey) $keyVariable).shortValue()));
+ ${localFieldSetter}(Short.valueOf(((NumberKey) $keyVariable).shortValue()));
#elseif ($localFieldType == "Integer")
- ${localFieldSetter}(new Integer(((NumberKey) $keyVariable).intValue()));
+ ${localFieldSetter}(Integer.valueOf(((NumberKey) $keyVariable).intValue()));
#elseif ($localFieldType == "Long")
- ${localFieldSetter}(new Long(((NumberKey) $keyVariable).longValue()));
+ ${localFieldSetter}(Long.valueOf(((NumberKey) $keyVariable).longValue()));
#elseif ($localFieldType == "Byte")
- ${localFieldSetter}(new Byte(((NumberKey) $keyVariable).byteValue()));
+ ${localFieldSetter}(Byte.valueOf(((NumberKey) $keyVariable).byteValue()));
#elseif ($localFieldType == "Float")
${localFieldSetter}(new Float(((NumberKey) $keyVariable).floatValue()));
#elseif ($localFieldType == "Double")
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org