public boolean equals(final Object obj) { boolean result = true; if (level != null ? !level.equals(log.level) : log.level != null) { result = false; } return result; }
/** * returns in inverse logic */ public boolean equals(final Object obj) { if (null != level ){ if(null != log.level){ // null check first if(false == level.equals(log.level)) { return false; } } return false; // log.level is null } return true; // equals }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)