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