Compares two strings for equality, where either one or both objects may be null. ObjectUtils.equals(null, null) = true ObjectUtils.equals(null, "") = false ObjectUtils.equals("", null) = false ObjectUtils.equals("", "")
(String o1, String o2)
| 1261 | * @return {@code true} if the values of both objects are the same |
| 1262 | */ |
| 1263 | public static boolean equals(String o1, String o2) { |
| 1264 | return o1 == null ? o2 == null : o1.equals(o2); |
| 1265 | } |
| 1266 | |
| 1267 | /** |
| 1268 | * <p> |
no test coverage detected