Simplify "if"s

This commit is contained in:
Jano Svitok 2018-08-06 13:10:33 +02:00
parent d5e464e52d
commit cb989acfa9

View File

@ -210,10 +210,8 @@ public class JadbDevice {
return false;
JadbDevice other = (JadbDevice) obj;
if (serial == null) {
if (other.serial != null)
return false;
} else if (!serial.equals(other.serial))
return false;
return true;
return other.serial == null;
}
return serial.equals(other.serial);
}
}