mirror of https://github.com/apache/cloudstack.git
Findbugs: Fix Upgrade430to440.java:119, ES_COMPARING_STRINGS_WITH_EQ,
Priority: High
This commit is contained in:
parent
52c4f00b26
commit
d1efdca506
|
|
@ -23,9 +23,9 @@ import java.sql.PreparedStatement;
|
|||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
import com.cloud.network.Network;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import com.cloud.network.Network;
|
||||
import com.cloud.utils.exception.CloudRuntimeException;
|
||||
import com.cloud.utils.script.Script;
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ public class Upgrade430to440 implements DbUpgrade {
|
|||
if (networkRs.next()) {
|
||||
String guesttype = networkRs.getString(1);
|
||||
|
||||
if (guesttype == Network.GuestType.Shared.toString()) {
|
||||
if (guesttype.equals(Network.GuestType.Shared.toString())) {
|
||||
pstmtUpdate = conn.prepareStatement("UPDATE `cloud`.`user_ip_address` SET account_id = ?, domain_id= ? WHERE public_ip_address = ?");
|
||||
pstmtUpdate.setLong(1,vmAccountId);
|
||||
pstmtUpdate.setLong(2,vmDomainId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue