use equals instead of comparison operators on strings

This commit is contained in:
Daan Hoogland 2015-11-02 11:29:03 +01:00
parent 9a798c537e
commit 3d5f09357b
1 changed files with 2 additions and 2 deletions

View File

@ -401,10 +401,10 @@ public class BigSwitchBcfApi {
gm.releaseConnection();
}
if(returnValue instanceof ControlClusterStatus) {
if(hash == HASH_CONFLICT) {
if(HASH_CONFLICT.equals(hash)) {
isMaster = true;
((ControlClusterStatus) returnValue).setTopologySyncRequested(true);
} else if (hash != HASH_IGNORE && !isMaster) {
} else if (!HASH_IGNORE.equals(hash) && !isMaster) {
isMaster = true;
((ControlClusterStatus) returnValue).setTopologySyncRequested(true);
}