Skip to content

Commit

Permalink
Polish ObjectUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Oct 24, 2015
1 parent a95eb6c commit 6727335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions junit-core/src/main/java/org/junit/core/util/ObjectUtils.java
Expand Up @@ -14,8 +14,8 @@ private ObjectUtils() {
/* no-op */
}

public static boolean nullSafeEquals(Object expected, Object actual) {
return (expected == null ? actual == null : expected.equals(actual));
public static boolean nullSafeEquals(Object obj1, Object obj2) {
return (obj1 == null ? obj2 == null : obj1.equals(obj2));
}

public static String nullSafeToString(Class<?>... classes) {
Expand Down

0 comments on commit 6727335

Please sign in to comment.