[SPARK-2024] addressing style checker complaints