public static boolean isSame(Object s1,Object s2){
  if (s1 == s2)   return true;
  if (X.isEmpty(s1) && X.isEmpty(s2))   return true;
  if (s1 != null) {
    return s1.equals(s2);
  }
  return false;
}

public static boolean isSame ( Object s1 , Object s2 ) { if ( s1 == s2 ) return true ; if ( X . isEmpty ( s1 ) && X . isEmpty ( s2 ) ) return true ; if ( s1 != null ) { return s1 . equals ( s2 ) ; } return false ; }
test whether equals the two objects .
