“”.equals() call can be replaced with String.isEmpty()

There is a built-in inspection in IntelliJ under Java > Performance called ‘String.equals(“”)’ which is described as: Reports .equals() being called to compare a String with an empty string. It is normally more performant to test a String for emptiness by comparing its .length() to zero instead. This means that when you have a code […]