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:47 UTC
git commit: updated refs/heads/master to 58eac0b
Repository: cloudstack
Updated Branches:
refs/heads/master f038a740a -> 58eac0b49
Fix 2 more findbugs DM_BOXED_PRIMITIVE_FOR_PARSING in Upgrade218to22.java
Signed-off-by: Daan Hoogland <da...@gmail.com>
This closes #500
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/58eac0b4
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/58eac0b4
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/58eac0b4
Branch: refs/heads/master
Commit: 58eac0b49d9ace8a7e554ea63776a4709f1c0a2e
Parents: f038a74
Author: Rafael da Fonseca <rs...@gmail.com>
Authored: Mon Jun 22 00:34:35 2015 +0200
Committer: Daan Hoogland <da...@gmail.com>
Committed: Mon Jun 22 10:49:35 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/58eac0b4/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 d3d10d9..3f19c54 100644
--- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade218to22.java
+++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade218to22.java
@@ -1388,8 +1388,8 @@ public class Upgrade218to22 implements DbUpgrade {
pstmt = conn.prepareStatement("INSERT INTO load_balancing_rules VALUES (?, ?, NULL, ?, ?, ?)");
pstmt.setLong(1, newLbId);
pstmt.setString(2, name);
- pstmt.setInt(3, Integer.valueOf(destPort));
- pstmt.setInt(4, Integer.valueOf(destPort));
+ pstmt.setInt(3, Integer.parseInt(destPort));
+ pstmt.setInt(4, Integer.parseInt(destPort));
pstmt.setString(5, algorithm);
pstmt.executeUpdate();
pstmt.close();