checkstyle fix: if construction must use {}