Simplified if statement
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
parent
36a9e84fbe
commit
5919c0c204
|
@ -12,10 +12,7 @@ public class Helper {
|
|||
*/
|
||||
public static boolean compareObjects(Object a, Object b) {
|
||||
if(a == null) {
|
||||
if(b == null)
|
||||
return true; //a and b both null
|
||||
|
||||
return false; //a null, b not null
|
||||
return b == null;
|
||||
}
|
||||
|
||||
if(b == null)
|
||||
|
|
Loading…
Reference in New Issue