[SPARK-3781] code Style format

No, the style convention is to omit () when the method has no side effects. `incrementAndGet` clearly has a side-effect, so should have ()