I like doing code reviews because they give me an opportunity to ramble.
Today I left this one in response to an ObjectUtil.equals
method:
I didn’t know it when I first wrote this method, but this is a built-in function since like 1987 or whenever Java 8 came out[1]: https://docs.oracle.com/javase/8/docs/api/java/util/Objects.html#equals-java.lang.Object-java.lang.Object-
[1] It is understandable that I wouldn’t know about it because I tried to write all my programs to run on JDK 1.4[2] until like 5 years ago kekekeke
[2] Because back in 2005 I wrote a game in Java 1.5 using generics and of course this meant it couldn’t run on the computers in the UW Platteville computer lab. I had to make them upgrade the JDK for an engineering expo. Also half my friends would tell me that my applets wouldn’t load if I used anything newer.
And speaking of old Java applets, it’s very sad that web browsers don’t generally support them anymore because it makes Ken Perlin’s homepage much less interesting. He was my inspiration for writing applets that would run in grandma’s web browser, and so in a roundabout way you can blame this function that’s a duplicate of one in Java’s standard library on him.