From 58eac0b49d9ace8a7e554ea63776a4709f1c0a2e Mon Sep 17 00:00:00 2001 From: Rafael da Fonseca Date: Mon, 22 Jun 2015 00:34:35 +0200 Subject: [PATCH] Fix 2 more findbugs DM_BOXED_PRIMITIVE_FOR_PARSING in Upgrade218to22.java Signed-off-by: Daan Hoogland This closes #500 --- engine/schema/src/com/cloud/upgrade/dao/Upgrade218to22.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade218to22.java b/engine/schema/src/com/cloud/upgrade/dao/Upgrade218to22.java index d3d10d944e7..3f19c5445bb 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();