You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2015/06/22 10:49:04 UTC
git commit: updated refs/heads/master to f038a74
Repository: cloudstack
Updated Branches:
refs/heads/master dc40f6117 -> f038a740a
Fix 2 findbugs occurences of DM_BOXED_PRIMITIVE_FOR_PARSING in Upgrade218to22.java
Signed-off-by: Daan Hoogland <da...@gmail.com>
This closes #499
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f038a740
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f038a740
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f038a740
Branch: refs/heads/master
Commit: f038a740a5d1518a5757be0cd7bb367eef4ad190
Parents: dc40f61
Author: Rafael da Fonseca <rs...@gmail.com>
Authored: Mon Jun 22 00:09:40 2015 +0200
Committer: Daan Hoogland <da...@gmail.com>
Committed: Mon Jun 22 10:48:49 2015 +0200
----------------------------------------------------------------------
engine/schema/src/com/cloud/upgrade/dao/Upgrade218to22.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f038a740/engine/schema/src/com/cloud/upgrade/dao/Upgrade218to22.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade218to22.java b/engine/schema/src/com/cloud/upgrade/dao/Upgrade218to22.java
index 62b3605..d3d10d9 100644
--- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade218to22.java
+++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade218to22.java
@@ -1286,8 +1286,8 @@ public class Upgrade218to22 implements DbUpgrade {
pstmt.setLong(1, id);
pstmt.setLong(2, instanceId);
pstmt.setString(3, privateIp);
- pstmt.setInt(4, Integer.valueOf(privatePort.trim()));
- pstmt.setInt(5, Integer.valueOf(privatePort.trim()));
+ pstmt.setInt(4, Integer.parseInt(privatePort.trim()));
+ pstmt.setInt(5, Integer.parseInt(privatePort.trim()));
pstmt.executeUpdate();
pstmt.close();
s_logger.trace("port_forwarding_rules table is updated");