Optimize equals slightly? Like it matters.
This commit is contained in:
parent
9b0845f2c3
commit
0ffa24b15e
@ -334,8 +334,8 @@ public class MUtil
|
|||||||
|
|
||||||
public static boolean equals(Object herp, Object derp)
|
public static boolean equals(Object herp, Object derp)
|
||||||
{
|
{
|
||||||
if (herp == null && derp == null) return true;
|
if (herp == null) return derp == null;
|
||||||
if (herp == null || derp == null) return false;
|
if (derp == null) return herp == null;
|
||||||
return herp.equals(derp);
|
return herp.equals(derp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user