Optimize equals slightly? Like it matters.

This commit is contained in:
Olof Larsson 2013-04-17 17:14:58 +02:00
parent 9b0845f2c3
commit 0ffa24b15e

View File

@ -334,8 +334,8 @@ public class MUtil
public static boolean equals(Object herp, Object derp)
{
if (herp == null && derp == null) return true;
if (herp == null || derp == null) return false;
if (herp == null) return derp == null;
if (derp == null) return herp == null;
return herp.equals(derp);
}