Skip to content

Commit 58eac0b

Browse files
rsafonsecaDaanHoogland
authored andcommitted
Fix 2 more findbugs DM_BOXED_PRIMITIVE_FOR_PARSING in Upgrade218to22.java
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com> This closes apache#500
1 parent f038a74 commit 58eac0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

engine/schema/src/com/cloud/upgrade/dao/Upgrade218to22.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,8 +1388,8 @@ public void upgradeLoadBalancingRules(Connection conn) {
13881388
pstmt = conn.prepareStatement("INSERT INTO load_balancing_rules VALUES (?, ?, NULL, ?, ?, ?)");
13891389
pstmt.setLong(1, newLbId);
13901390
pstmt.setString(2, name);
1391-
pstmt.setInt(3, Integer.valueOf(destPort));
1392-
pstmt.setInt(4, Integer.valueOf(destPort));
1391+
pstmt.setInt(3, Integer.parseInt(destPort));
1392+
pstmt.setInt(4, Integer.parseInt(destPort));
13931393
pstmt.setString(5, algorithm);
13941394
pstmt.executeUpdate();
13951395
pstmt.close();

0 commit comments

Comments
 (0)